Illegal mix of collations (utf8_general_ci,IMPLICIT) and (cp1251_general_ci,COERCIBLE) for operation 'like' SQL query : SELECT COUNT(DISTINCT p.productID) FROM SS_products p where categoryID>1 and enabled=1 and ( LOWER(name) LIKE '%ð ñžð ñ’ð â§ð ðŽð ñ™ð â ð â˜ð ñœ%' OR LOWER(product_code ) LIKE '%ð ñžð ñ’ð â§ð ðŽð ñ™ð â ð â˜ð ñœ%' OR LOWER(brief_description) LIKE '%ð ñžð ñ’ð â§ð ðŽð ñ™ð â ð â˜ð ñœ%' ) AND ( LOWER(name) LIKE '%nokia%' OR LOWER(product_code ) LIKE '%nokia%' OR LOWER(brief_description) LIKE '%nokia%' ) AND ( LOWER(name) LIKE '%n9%' OR LOWER(product_code ) LIKE '%n9%' OR LOWER(brief_description) LIKE '%n9%' )