How stupid! I'm sorry. I pasted the wrong portion of the code into the message.
The query presenting the syntax error is the following:
------
SELECT s_municipio.co_municipio, s_municipio.no_municipio, s_municipio.sg_uf, s_agente_epp.st_artesao, s_agente_epp.id_empresa
FROM s_municipio...