Comment count same for every post in homepage WP_Query

Switching out echo get_comments_number($post->ID) for echo $post->comment_count did the trick.

I have no idea why, that’s exactly what the get_comments_number() function does…

error code: 523