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 'muß der Tisch sich völlig bieg'n' ORDER BY books_id DESC LIMIT 1' at line 1: SELECT books_id, books_statustext, books_slug FROM books WHERE books_titel LIKE 'Heut' muß der Tisch sich völlig bieg'n' ORDER BY books_id DESC LIMIT 1