INSERT INTO query_cache(session_id, url_id, weight) SELECT DISTINCT '57u53jobivua5fre1uiq826hq4',u.id,1 as weight
FROM lect_url AS u
WHERE (LOCATE('Х', u.author )>0)
AND u.is_visible=1 UNION SELECT DISTINCT '57u53jobivua5fre1uiq826hq4',u.id,2 as weight
FROM lect_url AS u
WHERE (LOCATE('юз', u.author )>0)
AND u.is_visible=1 UNION SELECT DISTINCT '57u53jobivua5fre1uiq826hq4',u.id,3 as weight
FROM lect_url AS u
WHERE (LOCATE('Ленгстон', u.author )>0)
AND u.is_visible=1 Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb3_general_ci,COERCIBLE) for operation 'locate'