DELETE FROM `im_messagestatus` WHERE `status` = 'sent';
DELETE `im_messagestatus` FROM `im_messagestatus` LEFT JOIN `sys_user` ON `im_messagestatus`.`user` = `sys_user`.`id` WHERE `sys_user`.`deleted` = '1'
