You can alias that particular id to post_id and it will work its magic.
Eg.
SELECT id AS post_id
FROM posts
ORDER BY created_at DESC
You can alias that particular id to post_id and it will work its magic.
Eg.
SELECT id AS post_id
FROM posts
ORDER BY created_at DESC