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 archiv=0 and online=1 and absage=0 and ((year(termin)=1970 and month(termin)' at line 1