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 'die Welt in Flammen' ORDER BY books_id DESC LIMIT 1' at line 1: SELECT books_id, books_statustext FROM books WHERE books_titel LIKE 'Als st√ľnd' die Welt in Flammen' ORDER BY books_id DESC LIMIT 1