SELECT `id`, `owner`, `timeout`, `created_at`, `token`, `token`, `scope`, `depth`, `file_id`, `path`, `owner_account_id` FROM `oc_persistent_locks` l INNER JOIN `oc_filecache` f ON l.`file_id` = f.`fileid` WHERE (`storage` = '9') AND (`created_at` > ('1765219196' - `timeout`)) AND (f.`path` = 'files')