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 '' at line 4 Query was: SELECT termine.*,users.kuerzel,
IF(hplang3='de' AND homepage3<>'',homepage3,IF(hplang2='de' AND homepage2<>'',homepage2,homepage1))
as olink,users.googleMaps
FROM termine,users WHERE users.id=termine.user AND (user='' OR status!='draft') AND date>='2024-10-13' ORDER BY date LIMIT 0 ,