Fatal error: Problem preparing query (SELECT id,imagem,LinkDoBanner FROM BannerLateral where habilitado='1' AND id!=1 AND id!=39 AND =1 ORDER BY RAND()) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=1 ORDER BY RAND()' at line 1 in /home/apartado/MysqliDb.php on line 935