9
MySQL - Operand 1 sütun içermelidir
Oluşturduğum bir sistem üzerinde çalışırken aşağıdaki sorguyu projemde kullanmaya çalıştım: SELECT topics.id, topics.name, topics.post_count, topics.view_count, COUNT( posts.solved_post ) AS solved_post, (SELECT users.username AS posted_by, users.id AS posted_by_id FROM users WHERE users.id = posts.posted_by) FROM topics LEFT OUTER JOIN posts ON posts.topic_id = topics.id WHERE topics.cat_id = :cat GROUP BY topics.id …