UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '4m6vEdCxCjJrPjSOAJ0NidXBM+moefAdssiFo3bp+BQ='
WHERE
key_id = 'f4326efeb26ea19e15b9fe6a7dc6e7192714ffaeee811bdbac6a1600957ebe7d'
AND (
token = '4m6vEdCxCjJrPjSOAJ0NidXBM+moefAdssiFo3bp+BQ='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)