Error in SQL query: SELECT hotels.*, AS country_name, countries.continent AS continent_code, photos.filename AS filename, geo_tags.tag FROM geo_tags LEFT JOIN hotels ON ( = LEFT JOIN countries ON ( = countries.code) LEFT JOIN photos ON ( = WHERE REPLACE(geo_tags.tag,"'"," ") LIKE 'delta de l'ebre' GROUP BY ORDER BY ASC
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ebre' GROUP BY ORDER BY ASC' at line 6