Error in SQL query: SELECT hotels.*, countries.name AS country_name, countries.continent AS continent_code, photos.filename AS filename, geo_tags.tag FROM geo_tags LEFT JOIN hotels ON (hotels.id = geo_tags.place) LEFT JOIN countries ON (hotels.country = countries.code) LEFT JOIN photos ON (hotels.id = photos.place) WHERE REPLACE(geo_tags.tag,"'"," ") LIKE 'delta de l'ebre' GROUP BY hotels.id ORDER BY hotels.city 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 hotels.id ORDER BY hotels.city ASC' at line 6