Hi guys
I'm trying to combine 3 queries but having difficulties getting the results I want.
the query is:
SELECT
a. * ,
COUNT( b.comments ) AS comments_count,
COUNT( c.reply_text ) AS post_count
FROM
tbl_users a,
tbl_comments b,
tbl_forum_replies c
WHERE
a.user_id = 1
AND b.user = 1
AND c.reply_author = 1
GROUP BY a.user_id
THe problem is with the two COUNT queries I'm adding, if I add only one of them, I get the right results but as soon as I add the second query I get a number for both counts that is correct for neither of them.
Any ideas what's wrong with my query?