Fatal error: Uncaught exception 'PDOException' with message '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 '} AND p.show_on_website = 1 AND p.discontinued = 0 GROUP BY p.product_id' at line 5' in /usr/www/users/somusi/inc/classes/db.class.php:182 Stack trace: #0 /usr/www/users/somusi/inc/classes/db.class.php(182): PDO->query('SELECT p.produc...') #1 /usr/www/users/somusi/inc/queries.php(336): db->query('SELECT p.produc...') #2 /usr/www/users/somusi/code/code.product-view.php(99): getProductInfoById('{prdId}') #3 /usr/www/users/somusi/index.php(63): include_once('/usr/www/users/...') #4 {main} thrown in /usr/www/users/somusi/inc/classes/db.class.php on line 182