MySQL Query Error: 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 'Hara%' ) OR ( LOWER(b.strTitle) LIKE '%Frank%' and LOWER(b.strTitle) LIKE '%O' at line 1

Query: SELECT a.intPageID FROM Pages a LEFT OUTER JOIN Articles b ON a.intPageID = b.intPageID AND b.bitPublish = 1 WHERE ( ( LOWER(a.strPageName) LIKE '%Frank%' and LOWER(a.strPageName) LIKE '%O'Hara%' ) OR ( LOWER(b.strTitle) LIKE '%Frank%' and LOWER(b.strTitle) LIKE '%O'Hara%' ) OR ( LOWER(b.txtContent) LIKE '%Frank%' and LOWER(b.txtContent) LIKE '%O'Hara%' ) ) AND a.bitArchived = 0