您可以将该特定 id 别名为 post_id,它将发挥其魔力。例如:
id
post_id
SELECT id AS post_id FROM posts ORDER BY created_at DESC