1064 - 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 'AND m.lat IS NOT NULL' at line 6

SELECT m.url, m.tel, m.fax,m.sehen_id, m.lat, m.lon, m.name_en, m.name_fr AS name ,m.art_fr AS art , m.strasse, m.plz,m.text_fr AS text, m.ort_id AS ort_id, staedte.fr AS ort, country.fr AS land FROM sehenswertes AS m, staedte, country WHERE m.ort_id = staedte.id AND m.land_id = country.land_id AND m.ort_id = AND m.lat IS NOT NULL