UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'MlSxZDLDcU1hCO31+BY23BvMKm8a+Jl2zccGzE5Kr0I='
WHERE
key_id = '134aa8ba8e1f190b3bb2f0002b9ed1b2c4db1ab0ef5d57ed00a2a92b5a5f07e8'
AND (
token = 'MlSxZDLDcU1hCO31+BY23BvMKm8a+Jl2zccGzE5Kr0I='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)