SELECT * FROM `oc_activity` WHERE (`affecteduser` = 'Andrea Irias') AND (`type` IN ('shared', 'remote_share')) AND (((`app` = 'files_sharing'))) AND (`timestamp` <= '1732135576') AND (`activity_id` < '9482') ORDER BY `timestamp` DESC, `activity_id` DESC LIMIT 51