SELECT posts.id AS post_id, categories.id AS category_id, title, contents, posts.date_posted, categories.name, comments.id AS comment_id
FROM posts
LEFT JOIN (categories, comments) ON categories.id = posts.cat_id AND posts.id = comments.post_id
WHERE posts.id = 28
我希望这个 SQL 查询选择所有帖子,而不仅仅是那些有评论的帖子,但目前这个查询返回那些也有评论的行。