Acesso Restrito

Erro ao realizar consulta: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND f.ArquivoFuncao = 'associados-funrural-consultar.php'' at line 8 SELECT a.Leitura, a.Inclusao, a.Alteracao, a.Exclusao FROM sistemausuarioacesso AS a LEFT JOIN sistemafuncao AS f ON f.IDFuncao = a.IDFuncao WHERE a.IDGrupo = AND f.ArquivoFuncao = 'associados-funrural-consultar.php';