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 valor is not null and valor != ''' at line 1 | #0 /home/sigwm/public_html/ws/classes/dao/DAO.class.php(105): mysqli_query(Object(mysqli), ' SELECT *, DATE...') #1 /home/sigwm/public_html/ws/classes/dao/laudos/AnaliseValorDAO.class.php(432): DAO->getRows(' SELECT *, DATE...') #2 /home/sigwm/public_html/ws/webservice/laudos/reports/generate_graph_line_double.php(30): AnaliseValorDAO->listByIdClienteAndIdLaudoAndIdParametroDouble(NULL, NULL, NULL, NULL) #3 {main}