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 (ct.datum >= "2017-06-18") AND (NOW( ) >= ct.datum) AND (NOW( ) <= ct.' at line 3Fehler beim Datenbankzugriff