Notice: Undefined index: ssIDPerfil in E:\Site\public_html\portal\avaliacao_diagnostica\avaliacao_diagnostica_provaonline.php on line 11 Notice: Undefined index: ssIDUsuario in E:\Site\public_html\portal\avaliacao_diagnostica\avaliacao_diagnostica_provaonline.php on line 52 Ocorreu o seguinte erro: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 B.IDPosicao = 2 AND C.ID = 2 AND D.ID = 16 AND C.Ativo = 1 AND D.Ativo = 1 A' at line 1