Warning: Undefined array key "filtroConsultor" in /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php on line 58

Warning: Undefined array key "filtroFollowUp" in /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php on line 61

Warning: Undefined array key "filtroCondominio" in /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php on line 96

Warning: Undefined array key "filtroBairro" in /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php on line 99

Warning: Undefined array key "filtroFunil" in /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php on line 102

Warning: Undefined array key "filtroIntervalo" in /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php on line 105

Warning: Undefined array key "filtroEmpresaId" in /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php on line 126
SELECT p.codigo, c.nome as cliente, c.celular as whatsapp, s.codigo as status, p.negocio_fechado, p.data_criacao, p.atualizacao, p.data_aprovacao, p.natureza, u.nome as consultor, p.total, fu.codigo as etapa_cod, fu.descricao as etapa, f.codigo as follow_up_cod, f.status_follow_up as followup FROM sgc_proposta_comercial p INNER JOIN sgc_status s ON s.codigo = p.status INNER JOIN sgc_clientes c ON c.codigo = p.cliente_cod INNER JOIN sgc_usuario u ON u.codigo = p.vendedor_cod LEFT JOIN sgc_follow_up f ON p.codigo = f.proposta_comercial_cod LEFT JOIN sgc_proposta_comercial_funil fu ON fu.codigo = p.funil_cod WHERE 1=1 AND p.empresa_id IN() ORDER BY codigo DESC LIMIT 0,10
Fatal error: Uncaught mysqli_sql_exception: 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 codigo DESC LIMIT 0,10' at line 35 in /home/systemdecorcom/public_html/sg/model/MySQL.php:38 Stack trace: #0 /home/systemdecorcom/public_html/sg/model/MySQL.php(38): mysqli_query(Object(mysqli), 'SELECT \r\n\t\t\t\tp....') #1 /home/systemdecorcom/public_html/sg/public/js/proposta/grid-data.php(166): MySQL->query('SELECT \r\n\t\t\t\tp....') #2 {main} thrown in /home/systemdecorcom/public_html/sg/model/MySQL.php on line 38