Erro na query :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 (PER_PAGE='relatorio_locacoes.php' OR PER_PAGE='REL_relatorio_locacoes.php')' at line 2 - SELECT * FROM permissoes WHERE PER_USER_ID= AND (PER_PAGE='relatorio_locacoes.php' OR PER_PAGE='REL_relatorio_locacoes.php') AND PER_PERMISSAO LIKE '%_V_%'