Invalid query SELECT mosstadtnach.*, DATE_FORMAT(mosstadtnach.date + INTERVAL 3 HOUR, '%w') as wdate, DATE_FORMAT(mosstadtnach.date + INTERVAL 3 HOUR, '%d.%m.%Y') as fdate, DATE_FORMAT(mosstadtnach.update + INTERVAL 3 HOUR, '%d.%m.%Y %H:%i') as updated, DATE_FORMAT(mosstadtnach.date + INTERVAL 3 HOUR, '/%Y/%m/%d/') as linkdate, authors.signature, authors.url FROM mosstadtnach LEFT JOIN authors ON mosstadtnach.corr = authors.id WHERE mosstadtnach.id =