2025-05-13 13:40##Error en la 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 (poblacion LIKE '%Murcia%' OR direccion LIKE '%Murcia%') AND (
...' at line 8 - Consulta: SELECT * FROM (
SELECT
CASE WHEN empresa LIKE '%murcia%' THEN 1 ELSE 2 END AS rnk,
id, cliente, empresa, direccion, poblacion, pais, img_logo, img_flyer,
slug, destacado, plan, clase, mail_bienvenida, orden, fecha_registro, last_print
FROM DIRECTORIO
WHERE activo='1' AND visible='1' AND eliminado='0' AND (( AND (poblacion LIKE '%Murcia%' OR direccion LIKE '%Murcia%') AND (
empresa LIKE '%murcia%' OR
direccion LIKE '%murcia%' OR
poblacion LIKE '%murcia%' OR
descripcion LIKE '%murcia%'
) ) OR MATCH (keywords) AGAINST ('Murcia'))
) AS tab
ORDER BY cliente DESC, plan DESC, destacado DESC, orden DESC, rnk, last_print DESC, fecha_registro DESC, empresa
LIMIT 0, 12####