Could't execute query:

SELECT c.*, UNIX_TIMESTAMP(c.date) AS start_date, UNIX_TIMESTAMP(c.date_to) AS end_date, s.name, s.content_id AS picture_parent FROM events_structure s, events_content c WHERE (c.date = '2010-09-19 00:00:00' AND c.title = 'wir 'flohmarkten'' AND c.display = '1') OR (s.name = 'wir 'flohmarkten'' AND c.tree_id = s.id AND c.image1 != '') ORDER BY UNIX_TIMESTAMP(c.date) ASC, c.tree_id, c.pic_num.

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 'flohmarkten'' AND c.display = '1') OR (s.name = 'wir 'flohmarkten'' AND c' at line 3