I trying to join two query to compare count
SELECT count(customer_id) , customer_id
FROM `blog_post`
group by customer_id
and second query is
SELECT count(customer_id)
FROM `blog_comment`
WHERE `is_admin` IS NOT NULL
group by customer_id
Joined query i created is
SELECT count(post.customer_id) as post_count , post.customer_id ,
count(comment.customer_id)
FROM `blog_post` as post
left join blog_comment as comment on post.customer_id = comment.customer_id
WHERE `is_admin` IS NOT NULL
GROUP BY post.customer_id
I am not getting the same result as running them individually , what am i doing wrong