Error in query: SELECT * FROM books WHERE (Author = 'Michael D'Antonio' OR Author LIKE 'Michael D'Antonio%' OR Author LIKE '%Michael D'Antonio' OR Author LIKE '%Michael D'Antonio%') 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 'Antonio' OR Author LIKE 'Michael D'Antonio%' OR Author LIKE '%Michael D'Antonio' at line 1