ERROR: 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 1 | #0 /home/sigwm/public_html/ws/classes/dao/DAO.class.php(105): mysqli_query(Object(mysqli), 'SELECT ana.* , ...') #1 /home/sigwm/public_html/ws/classes/dao/laudos/AnaliseDAO.class.php(128): DAO->getRows('SELECT ana.* , ...') #2 /home/sigwm/public_html/ws/webservice/laudos/reports/export_analise_cupom.php(22): AnaliseDAO->getById(NULL) #3 {main}