Fatal error: Bad SQL Query
SELECT cat.keyword_id
FROM lm_categories cat
, lm_language_keywords llk
WHERE cat.keyword_id = llk.id
AND llk.keyword='asbestos survey's'
AND llk.language_code='ENG'
UNION
SELECT sub.category_keyword_id
FROM lm_subcategories sub
, lm_language_keywords llk
WHERE llk.keyword = 'asbestos survey's'
AND sub.keyword_id = llk.id
AND llk.language_code='ENG'
mySQL Said : 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'
AND llk.language_code='ENG'
' at line 5 in /home/limesearch.co.uk/public_html/php/lime_common.php on line 92