Error in query: SELECT * FROM books WHERE (Author = 'Edward T O'Donnell' OR Author LIKE 'Edward T O'Donnell%' OR Author LIKE '%Edward T O'Donnell' OR Author LIKE '%Edward T O'Donnell%') 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 'Donnell' OR Author LIKE 'Edward T O'Donnell%' OR Author LIKE '%Edward T O'Donne' at line 1