An Error Was Encountered

Error Number: 1064

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 'sale[[:>:]]' OR CATEGORY.category_c1 REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]' O' at line 9

SELECT SITEMAP.location,SITEMAP.url_category,SITEMAP.url_name, ACCOUNT.`id` , ACCOUNT.`name` ,ACCOUNT.description, ACCOUNT.`billing_address_street` , ACCOUNT.`billing_address_city` , ACCOUNT.`billing_address_state` , ACCOUNT.`billing_address_postalcode` ,ACCOUNT.`actual_postcode`, ACCOUNT.`billing_address_country` , ACCOUNT.`phone_office` ,, CATEGORY.*,, REGION.lon,REGION.region, (SELECT filename FROM izu_users_photos WHERE user_id = LIMIT 1) AS photo FROM accounts_cstm AS CATEGORY , `accounts` AS ACCOUNT ,izu_regions AS REGION, izu_temp_map AS SITEMAP WHERE SITEMAP.uid = and ACCOUNT.`actual_postcode` = REGION.`postalcode` and CATEGORY.id_c = and ACCOUNT.`deleted` =0 AND (CATEGORY.category_c REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]' OR CATEGORY.category_c1 REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]' OR CATEGORY.category_c2 REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]' OR CATEGORY.category_c3 REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]' OR CATEGORY.category_c4 REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]' OR CATEGORY.category_c5 REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]' OR REGEXP '[[:<:]]Newsagents-Wh'sale[[:>:]]')>0 AND REGION.region = 'Londonderry'