UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Dxncd+NCxUMnbkLzF4CThG00GQSMY1ZsUjsfpQ6QhiA='
WHERE
key_id = '2106df69395ed155a5ef0aea86a1752bef1d9148bf8a9ca92d931648fb08e068'
AND (
token = 'Dxncd+NCxUMnbkLzF4CThG00GQSMY1ZsUjsfpQ6QhiA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)