UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'WSUs+z7xeUX/idaSrO7+Us4AtXOFUB++ex5a1OUCDi0='
WHERE
key_id = '988a9b5ffb716c6ceecd0924f97a948484afd188721232d405334f08cc0f9746'
AND (
token = 'WSUs+z7xeUX/idaSrO7+Us4AtXOFUB++ex5a1OUCDi0='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)