해당 id를 post_id로 별칭을 지정하면 원하는 대로 동작합니다. 예:
id
post_id
SELECT id AS post_id FROM posts ORDER BY created_at DESC