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 's Wood' and postcode = 'NW8, NW3, NW6') OR (title = 'NW8, NW3, NW6' AND postcode' at line 1

select * from londoncleaner_locations where (title = 'St. John's Wood' and postcode = 'NW8, NW3, NW6') OR (title = 'NW8, NW3, NW6' AND postcode = 'St. John's Wood') LIMIT 1