SELECT DISTINCT ON(MID) * from draft where status='pass_' and mid in ('2197107','2235859','2122564') and is_delete is FALSE and is_online is TRUE ORDER BY mid,created_at DESC
SELECT DISTINCT ON(MID) * from draft where status='pass_' and mid in ('2197107','2235859','2122564') and is_delete is FALSE and is_online is TRUE ORDER BY mid,created_at DESC