UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'WUlLiRuQMl/n2LVhyhK8BLsKUwZxdu1ECG7uE/QSnJg='
WHERE
key_id = 'aef49f69809bae76c59c6de388bad533de761ebfcd56d720bbfa299be2ef736b'
AND (
token = 'WUlLiRuQMl/n2LVhyhK8BLsKUwZxdu1ECG7uE/QSnJg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)