Fatal error: Uncaught [42000] - SQLSTATE[42000]: Syntax error or access violation: 1064 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 'WHERE publicar = "1" AND idtipo = "3" ORDER BY RAND() LIMIT 1' at line 1 trace: #0 /home/rnhoje/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php(464): RedBeanPHP\Driver\RPDO->runQuery('SELECT * FROM ...', Array) #1 /home/rnhoje/vendor/gabordemooij/redbean/RedBeanPHP/Adapter/DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT * FROM ...', Array) #2 /home/rnhoje/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(158): RedBeanPHP\Adapter\DBAdapter->get('SELECT * FROM ...', Array) #3 /home/rnhoje/vendor/gabordemooij/redbean/RedBeanPHP/Facade.php(1171): RedBeanPHP\Facade::query('get', 'SELECT * FROM ...', Array) #4 /home/rnhoje/app/views/banners/banner_1200x150View.php(4): RedBeanPHP\Facade::getAll('SELECT * FROM ...') #5 /home/rnhoje/app/views/header/headerView.php(26): include('/home/rnhoj in /home/rnhoje/vendor/gabordemooij/redbean/RedBeanPHP/Driver/RPDO.php on line 194