Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'OR t.pt_id= OR t.pt_id=0) AND `t`.`p_status` = '1' AND t.g_id<2 AND `t`.`languag' at line 1 in /var/www/html/tous-artistes.art/library/Zend/Db/Adapter/Driver/Pdo/Connection.php:386
Stack trace:
#0 /var/www/html/tous-artistes.art/library/Zend/Db/Adapter/Driver/Pdo/Connection.php(386): PDO->query('SELECT `t`.*, `...')
#1 /var/www/html/tous-artistes.art/library/Zend/Db/Adapter/Adapter.php(189): Zend\Db\Adapter\Driver\Pdo\Connection->execute('SELECT `t`.*, `...')
#2 /var/www/html/tous-artistes.art/library/Admin/Base.php(115): Zend\Db\Adapter\Adapter->query('SELECT `t`.*, `...', 'execute')
#3 /var/www/html/tous-artistes.art/library/Admin/Products.php(365): Admin\Base::executeSql('SELECT `t`.*, `...')
#4 /var/www/html/tous-artistes.art/controllers/categories.php(174): Admin\Products::getProducts('', NUL in /var/www/html/tous-artistes.art/library/Zend/Db/Adapter/Driver/Pdo/Connection.php on line 386