UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+wkaMCswSseaViPbTCHT3TX6/LtL/9JPWLwCrpC9JRo='
WHERE
key_id = '64171787cd8ee81f1057f4f26078411579e2fea3289386a6d236d04f1184ece5'
AND (
token = '+wkaMCswSseaViPbTCHT3TX6/LtL/9JPWLwCrpC9JRo='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)