UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'rzyBusyLeimCby+dY9Xmbz+a+EXhHcuBQhYAkK5RFY8='
WHERE
key_id = '76f9f71563dbd6b6dbe63c3f9eea71b4b09875e516da288aad5697f683f965f0'
AND (
token = 'rzyBusyLeimCby+dY9Xmbz+a+EXhHcuBQhYAkK5RFY8='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)