WordPress database error: [Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=']
(
SELECT 0 AS is_personal, 1 AS is_ip, status, country_code, network, mask
FROM wp_xxcdtb_spbc_firewall_data_v4
WHERE network IN (301989888,306184192,308281344,309329920,309592064,309723136,309755904,309772288,309780480,309784576,309786624,309787648,309788160,309788224,309788240,309788248,309788252,309788254)
AND network = 309788254 & mask
AND country_code = "0"
) UNION (
SELECT 1 AS is_personal, 1 AS is_ip, status, 0 AS country_code, network, mask
FROM wp_xxcdtb_spbc_firewall__personal_ips_v4
WHERE network IN (301989888,306184192,308281344,309329920,309592064,309723136,309755904,309772288,309780480,309784576,309786624,309787648,309788160,309788224,309788240,309788248,309788252,309788254)
AND network = 309788254 & mask
) UNION (
SELECT 1 AS is_personal, 0 AS is_ip, tbl_private.status, country_code, network, mask
FROM wp_xxcdtb_spbc_firewall__personal_countries AS tbl_private
RIGHT JOIN wp_xxcdtb_spbc_firewall_data_v4 AS tbl_common USING(country_code)
WHERE network IN (301989888,306184192,308281344,309329920,309592064,309723136,309755904,309772288,309780480,309784576,309786624,309787648,309788160,309788224,309788240,309788248,309788252,309788254)
AND network = 309788254 & mask
AND tbl_private.status IS NOT NULL
AND 90219 <> 0
)