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 クエリで、コメントがあるものだけでなく、すべての投稿を選択するようにしたいのですが、現時点では、このクエリはコメントもある行を返します。