任何人都可以让我知道下面的正确 MySQL 语法吗
SELECT ta.id,
ta.raw,
ta.title,
ta.hits as tag_hits,
it.hits as image_tag_hits,
(SELECT count(*)
FROM image_tag
WHERE image_tag.tag_title_id = ta.id) as tag_count
FROM tag_title ta
INNER JOIN image_tag it ON ta.id = it.tag_title_id
INNER JOIN image im ON it.image_id = im.id
WHERE im.id = '12975' AND tag_count >0;
非常感谢