SELECT
i.tid,
i.type,
il.name,
p.path
FROM
wct_municipality AS i,
wct_municipality_language AS il,
wct_path AS p
WHERE
i.tid=il.id_municipality
AND il.id_language=3
AND i.id_zone=
AND i.visible='1'
AND i.online='1'
AND il.id_language=p.id_language
AND p.id_item=i.tid
AND p.id_list=i.id_list
AND p.list_type=i.type: 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 i.visible='1'
AND i.online='1'
AND il.id_language=p.id_language
AN...' at line 14