UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Vol+GLCsY8cRfWjBkMf3EEu4qwlD3q5ISbcsgaKC5QY='
WHERE
key_id = '9f3549715b7aee949fd1215cf2c3c99960abf4f742b3b3bfc259dd5cf5642f87'
AND (
token = 'Vol+GLCsY8cRfWjBkMf3EEu4qwlD3q5ISbcsgaKC5QY='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)