SELECT b.M1_account_id, a.accountid as 'M2_accound_id', b.scan_time, a.first_sub_datatime as 'sub_datatime' FROM 
(SELECT * FROM `2022_subscribe`
WHERE first_sub_datatime BETWEEN '2022-11-14' AND '2022-12-26') a
RIGHT JOIN 
(SELECT * FROM `2022_mgm`
WHERE act_name = '世界杯-转介') b
on a.openid = b.M2_openId