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` = ? ) AND ( `created_at` > ( ? - `timeout` ) ) AND ( `f` . `path` = ? )