SELECT s.*, f.`fileid`, f.`path`, st.`id` AS `storage_string_id` FROM `oc_share` s LEFT JOIN `oc_filecache` f ON s.`file_source` = f.`fileid` LEFT JOIN `oc_storages` st ON f.`storage` = st.`numeric_id` WHERE (`share_type` = '0') AND (`share_with` = 'Melissa Barquero') AND ((`item_type` = 'file') OR (`item_type` = 'folder')) ORDER BY s.`id` ASC LIMIT 50 OFFSET 6