UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Gev/NdLb9voatZPXDcD2pMNGbgwD6/bFdgN9zXtY9cA='
WHERE
key_id = '25ffe1a6be0c4069fcb1714ff32c9bab8a4f6c55c325ac65ac56bc3380e0bf16'
AND (
token = 'Gev/NdLb9voatZPXDcD2pMNGbgwD6/bFdgN9zXtY9cA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)