UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'eo9oGtMHxO0K4A71oDYSvtJ+Ezof/FoWGl5jgKL2C1k=' 
WHERE 
  key_id = '84412af71e6921a247c30806c9ee022b96d4862083d08b96903eda1e33461362' 
  AND (
    token = 'eo9oGtMHxO0K4A71oDYSvtJ+Ezof/FoWGl5jgKL2C1k=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00081