$quer2 = mysql_query("
SELECT
f.name,
f.id,
count(t.id) AS count,
count(t.id) AS count2 where t.topic = ""
FROM
forums_forums f
left JOIN forums_topics t ON t.fid = f.id
WHERE f.id = '" . $row['id'] . "' GROUP BY t.fid");
now i know count(t.id) AS count2 where t.topic = "" isnt going to work, obviously, but how can i get something that will do that?
Thanks in advance 🙂