Error with collation

If you get such error:
user warning: Illegal mix of collations (latin1_swedish_ci,IMPLICIT)
and (utf8_general_ci,COERCIBLE) for operation '=' query: SELECT qid FROM
top_searches WHERE q = 'орп' in .\includes\database.mysql.inc on line 172.

Change all collation for the db, each table, each row of the table from latin1_swedish_ci collation to utf8_general_ci

May 29, 2018