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 'and a.id=?' at line 1 in /home/www/artpickshop/www/top_manager/order_edit.php:37 Stack trace: #0 /home/www/artpickshop/www/top_manager/order_edit.php(37): PDO->prepare('select a.*,b.na...') #1 {main} thrown in /home/www/artpickshop/www/top_manager/order_edit.php on line 37