SELECT Topic, COUNT(P.Num) AS Nbre FROM F_Post P INNER JOIN F_Topic T ON (P.Topic=T.Num)
WHERE T.Num IN () GROUP BY Topic You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') GROUP BY Topic' at line 2