Error in query: SELECT * FROM books WHERE (Author = 'Jeffrey O'Connell, Thomas E. O'Connell' OR Author LIKE 'Jeffrey O'Connell, Thomas E. O'Connell%' OR Author LIKE '%Jeffrey O'Connell, Thomas E. O'Connell' OR Author LIKE '%Jeffrey O'Connell, Thomas E. O'Connell%') 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 'Connell, Thomas E. O'Connell' OR Author LIKE 'Jeffrey O'Connell, Thomas E. O'Con' at line 1