Hi all,
I hope that i can ask this here, because i did not found any other forum here where i should post this.
My problem is:
I have two query’s like this:
SELECT *,
(SELECT COUNT(*)
FROM
topics
WHERE
topics.topic_cat = categories.cat_id) AS aantaltopics
FROM
categoriesand
SELECT *,
(SELECT COUNT(*)
FROM
posts
WHERE
posts.post_topic = topics.topic_cat ) AS aantalposts
FROM
topics
GROUP BY
topics.topic_catThese query’s gives the right amount from the posts, and topics.
But now i am stuck because they have to be combined in one query.
how can i do this?
thnx for the advise.