UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'Kf44IR6pJSfxuKrKZuEIvy5cRqZI9rCVj48Ha/UeoCI='
WHERE
key_id = '76bd52ee8ca0facb5d8b2bde1f8a0b6bae883bc156064bb307abaaa777d146c3'
AND (
token = 'Kf44IR6pJSfxuKrKZuEIvy5cRqZI9rCVj48Ha/UeoCI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)