UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 4, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 12 
WHERE 
  product_id IN (
    13240, 13241, 13242, 13243, 13244, 13245
  )

Query time 0.00192

Result

int(6)