update v5_user set is_invite = 1 where id in ( select temp.to_uid from ( select to_uid from v5_invite_user where 1 ) temp )