SELECT distinct `tag_index`.`type` FROM `tag_index` LEFT JOIN `tags` ON `tags`.`id`=`tag_index`.`tag_id` WHERE `tags`.`title`='(õóäååì)'

Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='