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 app_cnegocios.neg_empresa=app_usuario.usu_id and app_cnegocios.neg_empresa=a' at line 1