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` = '65') AND (`created_at` > ('1765574541' - `timeout`)) AND ((f.`path` = 'files/SG/CONTROL DE EQUIPOS/LS/LS-06 DIVISOR/RC-AG-106 LS-18-006-001.pdf') OR (f.`path` LIKE 'files/SG/CONTROL DE EQUIPOS/LS/LS-06 DIVISOR/RC-AG-106 LS-18-006-001.pdf/%') OR ((`depth` <> '0') AND (`path` IN ('files', 'files/SG', 'files/SG/CONTROL DE EQUIPOS', 'files/SG/CONTROL DE EQUIPOS/LS', 'files/SG/CONTROL DE EQUIPOS/LS/LS-06 DIVISOR'))))