UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'vJfBqhIaseU6u43jI4QSxwO23FbofaMQz6jnSBzwYmg='
WHERE
key_id = '11a5037869bd34ae20dfd29babf96b5517cbc234ea3c87fb94e01bd2a62a45aa'
AND (
token = 'vJfBqhIaseU6u43jI4QSxwO23FbofaMQz6jnSBzwYmg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)