is it possible to return the count of two different joins, e.g.
select name, count(posts.id) num_posts, count(friends.id) num_friendsfrom users inner join posts on posts.user_id = users.id inner join friends on friends.user_id = users.idgroup by users.id
when I try this, I get very large numbers for num_posts and num_friends, and the two numbers are identical. if I only try to select one of the counts, then i get the expected number.
thanks,
jeff