I renamed that $posts to something else, and should be fixed right?
Yes, the line is that one exactly.
The page its failling actually looks for posts like this:
$posts = new WP_Query( $args );
if ( $posts->have_posts() ) {
while ( $posts->have_posts() ) {
$posts->the_post();
...
How can I make them compatible?