UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'JrQuAjuJFgohpReMz/m6Zygw6fJIZJwf/pru6eyCtaQ='
WHERE
key_id = 'c98e4dbea582d40c8d17c1cc169aaf329a782cfa0ae5ff57ea90bbb0ba0eb5eb'
AND (
token = 'JrQuAjuJFgohpReMz/m6Zygw6fJIZJwf/pru6eyCtaQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)