1267 Illegal mix of collations (latin1_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like'
in:
[select count(distinct p.products_id) as total FROM (products p LEFT JOIN manufacturers m USING(manufacturers_id), products_description pd, categories c, products_to_categories p2c ) LEFT JOIN meta_tags_products_description mtpd ON mtpd.products_id= p2c.products_id AND mtpd.language_id = 1 WHERE (p.products_status = 1 AND p.products_id = pd.products_id AND pd.language_id = 1 AND p.products_id = p2c.products_id AND p2c.categories_id = c.categories_id AND ((pd.products_name LIKE '%levi\'s%' OR p.products_model LIKE '%levi\'s%' OR m.manufacturers_name LIKE '%levi\'s%' OR (mtpd.metatags_keywords LIKE '%levi\'s%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%levi\'s%' AND mtpd.metatags_description !='')) and (pd.products_name LIKE '%504���%' OR p.products_model LIKE '%504���%' OR m.manufacturers_name LIKE '%504���%' OR (mtpd.metatags_keywords LIKE '%504���%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%504���%' AND mtpd.metatags_description !='')) and (pd.products_name LIKE '%regular%' OR p.products_model LIKE '%regular%' OR m.manufacturers_name LIKE '%regular%' OR (mtpd.metatags_keywords LIKE '%regular%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%regular%' AND mtpd.metatags_description !='')) and (pd.products_name LIKE '%straight%' OR p.products_model LIKE '%straight%' OR m.manufacturers_name LIKE '%straight%' OR (mtpd.metatags_keywords LIKE '%straight%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%straight%' AND mtpd.metatags_description !='')) and (pd.products_name LIKE '%jeans%' OR p.products_model LIKE '%jeans%' OR m.manufacturers_name LIKE '%jeans%' OR (mtpd.metatags_keywords LIKE '%jeans%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%jeans%' AND mtpd.metatags_description !='')) and (pd.products_name LIKE '%the%' OR p.products_model LIKE '%the%' OR m.manufacturers_name LIKE '%the%' OR (mtpd.metatags_keywords LIKE '%the%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%the%' AND mtpd.metatags_description !='')) and (pd.products_name LIKE '%rich%' OR p.products_model LIKE '%rich%' OR m.manufacturers_name LIKE '%rich%' OR (mtpd.metatags_keywords LIKE '%rich%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%rich%' AND mtpd.metatags_description !='')) and (pd.products_name LIKE '%m56t7577%' OR p.products_model LIKE '%m56t7577%' OR m.manufacturers_name LIKE '%m56t7577%' OR (mtpd.metatags_keywords LIKE '%m56t7577%' AND mtpd.metatags_keywords !='') OR (mtpd.metatags_description LIKE '%m56t7577%' AND mtpd.metatags_description !='')) ))]