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