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_en AS name ,m.art_en AS art , m.strasse, m.plz,m.text_en AS text, m.ort_id AS ort_id, staedte.en AS ort, country.en 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

[TEP STOP]

/var/www/messeninfo.de/class/sql.php