UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/Ek5NMtiHAzw1D1j60UL4Wa/oHtU4ISC359mEXqUgGo='
WHERE
key_id = '95d452169b617371f046cf64255ee0d6718d401a1fe42b5e77332797fa47c6bf'
AND (
token = '/Ek5NMtiHAzw1D1j60UL4Wa/oHtU4ISC359mEXqUgGo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)