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 MySQL server version for the right syntax to use near '' at line 8' in /var/www/html/model/Db.model.php:37 Stack trace: #0 /var/www/html/model/Db.model.php(37): PDOStatement->execute(Array) #1 /var/www/html/model/Fetch.model.php(2525): Db->dbFetchAll('? SELE...') #2 /var/www/html/control/itemPropostaController.control.php(75): Fetch->getPrecosQuebradosById(NULL) #3 /var/www/html/control/itemPropostaController.control.php(41): itemPropostaController->findItensDescontoQuebrados(NULL) #4 /var/www/html/control/itemPropostaController.control.php(20): itemPropostaController->applyDescontosQuebrados() #5 /var/www/html/control/VenderController.control.php(486): itemPropostaController->getItem() #6 /var/www/html/control/VenderController.control.php(24): VenderController->PaginaProdutoController() #7 /var/www/html/html/vender.php in /var/www/html/model/Db.model.php on line 37