UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'IeF8V8nCkp69X/ET6mG5gkXJG8kQFoIbsAoHHMolEpQ='
WHERE
key_id = '2add2f393afff861f6bc0975a6eb0814d794665b86d76647aa01e4bbfec1837b'
AND (
token = 'IeF8V8nCkp69X/ET6mG5gkXJG8kQFoIbsAoHHMolEpQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)