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 'ORDER BY ID' at line 1 | #0 /home/sigwm/public_html/ws/classes/dao/DAO.class.php(105): mysqli_query(Object(mysqli), 'SELECT * FROM c...') #1 /home/sigwm/public_html/ws/classes/dao/ClienteLaudoDAO.class.php(439): DAO->getRows('SELECT * FROM c...') #2 /home/sigwm/public_html/ws/classes/dao/laudos/AnaliseDAO.class.php(1217): ClienteLaudoDAO->getByIdAndIdParametro(NULL, NULL) #3 /home/sigwm/public_html/ws/webservice/laudos/reports/generate_graph_bar.php(29): AnaliseDAO->reportByClientIdLaudoIdParametro(NULL, NULL, NULL, 6, NULL) #4 {main}

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 'and ana.ID_CLIENTE= and av.ID_PARAMETRO = and av.ID_PARAMETRO = par.ID and valo' at line 1 | #0 /home/sigwm/public_html/ws/classes/dao/DAO.class.php(105): mysqli_query(Object(mysqli), ' SELECT av.*, a...') #1 /home/sigwm/public_html/ws/classes/dao/laudos/AnaliseValorDAO.class.php(379): DAO->getRows(' SELECT av.*, a...') #2 /home/sigwm/public_html/ws/classes/dao/laudos/AnaliseDAO.class.php(1220): AnaliseValorDAO->listByIdClienteAndIdLaudoAndIdParametro(NULL, NULL, NULL, '--30 23:59:59', NULL) #3 /home/sigwm/public_html/ws/webservice/laudos/reports/generate_graph_bar.php(29): AnaliseDAO->reportByClientIdLaudoIdParametro(NULL, NULL, NULL, 6, NULL) #4 {main}