Warning: Undefined array key "id" in /home/systemdecorcom/public_html/sg/view/pedido/teste.php on line 68

Fatal error: Uncaught mysqli_sql_exception: 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 '' at line 30 in /home/systemdecorcom/public_html/sg/model/MySQL.php:38 Stack trace: #0 /home/systemdecorcom/public_html/sg/model/MySQL.php(38): mysqli_query(Object(mysqli), 'SELECT DISTINCT...') #1 /home/systemdecorcom/public_html/sg/view/pedido/teste.php(70): MySQL->query('SELECT DISTINCT...') #2 {main} thrown in /home/systemdecorcom/public_html/sg/model/MySQL.php on line 38