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 status = 'ok' ORDER BY Eintrag_vom DESC' at line 1
SELECT *, DATE_FORMAT(GAESTEBUCH_Eintrag.Eintrag_vom, '%e.%c.%Y %k:%i') AS DatumUhrzeit FROM GAESTEBUCH_Eintrag WHERE GbID = AND status = 'ok' ORDER BY Eintrag_vom DESC
/index.php