SELECT * FROM `oc_activity` WHERE (`affecteduser` = 'Andrea Irias') AND (`type` IN ('file_created', 'file_changed', 'file_deleted', 'file_restored')) AND (((`app` = 'files'))) ORDER BY `timestamp` DESC, `activity_id` DESC LIMIT 51