select name,(select count(*)
from tableTopics where
belongsInForum = tf.id) as numberOfTopics,
(select count(*) from tablePosts
where BelongsTopic in (
select id from tableTopics
where BelongsInForum = tf.id)) as numberOfPosts
from tableForums tf
------------------ essentitia preter non sans multiplicandum