UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'K21mmhkPY7vRSnrZyR+PXvq0IBg0w4xaVHBH3Z55zno='
WHERE
key_id = '68d9bb9cccba7db1a8aaa4b50bcf3df7f474025815f16a65684c5644cfc91f42'
AND (
token = 'K21mmhkPY7vRSnrZyR+PXvq0IBg0w4xaVHBH3Z55zno='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)