UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+28dWLle4rF+ay4UaJO4PYTBEXU2WDjhQQPrFwOINQg='
WHERE
key_id = 'cfb2e7de676213461e260017f8bb89d7cd914143aa33ceeac9deca6d9d9c6e36'
AND (
token = '+28dWLle4rF+ay4UaJO4PYTBEXU2WDjhQQPrFwOINQg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)