$post_items = $db->query("SELECT post_id,content,date,category_id
FROM post_items JOIN user ON(post_items.user_id = user.user_id) WHERE post_items.user_id =" . $userid)
如何在我的情況下包括訂單?我試圖通過sql查詢錯誤命令
$post_items = $db->query("SELECT post_id,content,date,category_id
FROM post_items JOIN user ON(post_items.user_id = user.user_id) WHERE post_items.user_id =" . $userid ."order by post_id");