Error in query: SELECT * FROM books WHERE (Author = 'John D'Emilio' OR Author LIKE 'John D'Emilio%' OR Author LIKE '%John D'Emilio' OR Author LIKE '%John D'Emilio%') AND DISPLAY = 1 ORDER BY Title. 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 'Emilio' OR Author LIKE 'John D'Emilio%' OR Author LIKE '%John D'Emilio' OR Aut' at line 1