I fixed that but I am still getting this error:
Fatal error: Call to a member function have_posts() on a non-object in /home/senroctech/public_html/wp-content/themes/Senroc/banner-cat.php on line 66
line 66 is this line of code:
if ( $posts->have_posts() ) : while ( $posts->have_posts() ) : $posts->the_post(); ?>