UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 9984, 
  `added` = 24, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 30069 
WHERE 
  product_id IN (
    395984, 395985, 395986, 395987, 395988
  )

Query time 0.00067

Result

int(5)