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 '%ã¤ã«ã¿%' OR LOWER(product_code ) LIKE '%ã¤ã«ã¿%' OR LOWER(brief_description) LIKE '%ã¤ã«ã¿%' ) AND ( LOWER(name) LIKE '%samsung%' OR LOWER(product_code ) LIKE '%samsung%' OR LOWER(brief_description) LIKE '%samsung%' ) AND ( LOWER(name) LIKE '%e250%' OR LOWER(product_code ) LIKE '%e250%' OR LOWER(brief_description) LIKE '%e250%' )