SELECT b.id, b.ext, b.file, b.pos, b.width, b.height, b.url, b.locationId FROM banner b, banner_zone ba WHERE b.isActive AND ba.bannerId=b.id AND ba.zoneId= ORDER BY b.pos


Fatal error: Uncaught exception 'DBException' with message 'SELECT b.id, b.ext, b.file, b.pos, b.width, b.height, b.url, b.locationId FROM banner b, banner_zone ba WHERE b.isActive AND ba.bannerId=b.id AND ba.zoneId= ORDER BY b.pos<br>You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY b.pos' at line 1' in /home/mx4u/www/lib/DBMySQL.php:155 Stack trace: #0 /home/mx4u/www/lib/DBMySQL.php(188): DBMySQL::q('SELECT b.id, b....', NULL) #1 /home/mx4u/www/lib/DBMySQL.php(178): DBMySQL::fetchAll('Banner', 'SELECT b.id, b....', NULL) #2 /home/mx4u/www/actions/PublicPage.php(649): DBMySQL::fetch('Banner', 'SELECT b.id, b....') #3 /home/mx4u/www/actions/InternalPage.php(167): PublicPage->init() #4 /home/mx4u/www/actions/FullPage.php(23): InternalPage->init() #5 /home/mx4u/www/actions/TrackPage.php(98): FullPage->init() #6 /home/mx4u/www/lib/PageEntity.php(492): TrackPage->init() #7 /home/mx4u/www/lib/PageEntity.php(417): PageEntity->doGet( in /home/mx4u/www/lib/DBMySQL.php on line 155