UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 9985, 
  `added` = 25, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 30077 
WHERE 
  product_id IN (
    395984, 395985, 395986, 395987, 395988
  )

Query time 0.00049

Result

int(5)