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 r.DATA_A...') #1 /home/sigwm/public_html/ws/classes/dao/laudos/RctPotabilidadeDAO.class.php(174): DAO->getRows('SELECT r.DATA_A...') #2 /home/sigwm/public_html/ws/webservice/laudos/reports/___export_rct_potabilidade.php(46): RctPotabilidadeDAO->getById(NULL) #3 {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 ') as NOME_CONSULTOR_RESPONSAVEL FROM CLIENTE cli WHERE cli.ID_CLIENTE =' at line 4 | #0 /home/sigwm/public_html/ws/classes/dao/DAO.class.php(105): mysqli_query(Object(mysqli), 'SELECT cli.*,\n\t...') #1 /home/sigwm/public_html/ws/classes/dao/ClienteDAO.class.php(430): DAO->getRows('SELECT cli.*,\n\t...') #2 /home/sigwm/public_html/ws/webservice/laudos/reports/___export_rct_potabilidade.php(47): ClienteDAO->getById(NULL) #3 {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 '' 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/ClienteServicoDAO.class.php(141): DAO->getRows('SELECT * FROM c...') #2 /home/sigwm/public_html/ws/classes/dao/ClienteDAO.class.php(460): ClienteServicoDAO->listByIdClienteAsArray(NULL) #3 /home/sigwm/public_html/ws/webservice/laudos/reports/___export_rct_potabilidade.php(47): ClienteDAO->getById(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 '' 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(131): DAO->getRows('SELECT * FROM c...') #2 /home/sigwm/public_html/ws/classes/dao/ClienteDAO.class.php(464): ClienteLaudoDAO->listByIdCliente(NULL) #3 /home/sigwm/public_html/ws/webservice/laudos/reports/___export_rct_potabilidade.php(47): ClienteDAO->getById(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 '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/ClienteChillerDAO.class.php(72): DAO->getRows('SELECT * FROM c...') #2 /home/sigwm/public_html/ws/classes/dao/ClienteDAO.class.php(470): ClienteChillerDAO->listByIdCliente(NULL) #3 /home/sigwm/public_html/ws/webservice/laudos/reports/___export_rct_potabilidade.php(47): ClienteDAO->getById(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 '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/ClienteFaseDAO.class.php(310): DAO->getRows('SELECT * FROM C...') #2 /home/sigwm/public_html/ws/classes/dao/ClienteDAO.class.php(474): ClienteFaseDAO->listByIdCliente(NULL) #3 /home/sigwm/public_html/ws/webservice/laudos/reports/___export_rct_potabilidade.php(47): ClienteDAO->getById(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 a.ID_TIPO = 6 AND a.ATIVO = 1 AND a.FINALIZADO = 1 AND (a.IGNORAR_RELATORIO ' at line 1 | #0 /home/sigwm/public_html/ws/classes/dao/DAO.class.php(105): mysqli_query(Object(mysqli), 'select a.ID, a....') #1 /home/sigwm/public_html/ws/classes/dao/laudos/AnaliseDAO.class.php(1078): DAO->getRows('select a.ID, a....') #2 /home/sigwm/public_html/ws/webservice/laudos/reports/___export_rct_potabilidade.php(120): AnaliseDAO->getByDataAndIdClientePotabilidade(NULL, '--30', 6) #3 {main}