Invalid SQL: SELECT DISTINCT country_code, country, regionnew_code, regionnew, city_code, city FROM locations WHERE ( (country LIKE 'El Coll d'en Rabassa%' OR regionnew LIKE 'El Coll d'en Rabassa%' OR city LIKE 'El Coll d'en Rabassa%' ) AND city != '' AND country != '') ORDER BY country, regionnew, city LIMIT 30
MySQL Error: 1064 (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 'en Rabassa%' OR regionnew LIKE 'El Coll d'en Rabassa%' OR city LIKE 'El Coll ...' at line 1)