• SELECT * FROM `activity` where user_id= '' and vid_id != 0 and activity = 'download' group by vid_id order by id desc