it's not the problem.
you are getting the Correct result. i think you just want to show the result in a specific way.
so just change the look or design you working on.
You are Using.
SELECT SUM(total_comment) AS comment
FROM user_comment
INNER JOIN post
ON user_comment.image_id = post.id
WHERE status = 0
you are getting.
Total comment: 3 as a result.
so what do you really want next???