Fatal error: Uncaught mysqli_sql_exception: 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 'AND id AND publicacion BETWEEN date_add(NOW(), INTERVAL -7 DAY) AND NOW() ORD...' at line 1 in /home/xpaja/public_html/core/controllers/buscarController.php:805 Stack trace: #0 /home/xpaja/public_html/core/controllers/buscarController.php(805): mysqli->query() #1 /home/xpaja/public_html/index.php(391): include('/home/xpaja/pub...') #2 {main} thrown in /home/xpaja/public_html/core/controllers/buscarController.php on line 805