UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'GUdtUq/SIXHyHBNLtB8Eqc1ZC2/bk1dYQSZg1D0V/r0='
WHERE
key_id = '4f42558f31c9479d60f707feea6a171ceca204724180bfc2ceaa8b66bb9b4e9c'
AND (
token = 'GUdtUq/SIXHyHBNLtB8Eqc1ZC2/bk1dYQSZg1D0V/r0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)