Fatal error: Uncaught exception 'Exception' with message '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 'or banner.zona = '') AND fecha_desde <= ? AND fecha_hasta >= ? AND banner.acti' at line 1 query: ' in /var/www/html/core/pt_utils/MySQL.php:1402
Stack trace:
#0 /var/www/html/core/pt_utils/MySQL.php(1072): PT_MySQL->_prepareQuery()
#1 /var/www/html/core/pt_utils/MySQL.php(497): PT_MySQL->_buildQuery(NULL)
#2 /var/www/html/core/Grillas.php(201): PT_MySQL->get('banner', NULL, 'banner.id, img_...')
#3 /var/www/html/pags/ficha-ubicacion.php(385): PT_Grillas->traerBanners('2024-09-19', 'comuna', '601')
#4 /var/www/html/index-min.php(919): include('/var/www/html/p...')
#5 {main}
thrown in /var/www/html/core/pt_utils/MySQL.php on line 1402