ERROR en MYSQL: 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 '' at line 6query->SELECT c.id as idd, c.title, c.alias, l.localidad, p.provincia,
c.direccion, c.cp, c.tlf, c.fax FROM jos_ct_fc as jc
LEFT JOIN jos_content AS c ON jc.id = c.id
LEFT JOIN jos_localidad AS l ON c.localidad = l.id
LEFT JOIN jos_provincia AS p ON c.provincia = p.id
where c.retirar<>'S' and jc.ct='314' AND c.provincia=