UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 60, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 102 
WHERE 
  product_id IN (
    3178, 3188, 3196, 3274, 3276, 3285, 3286, 
    3290, 3292, 6744, 6749, 6760, 6767, 
    6824, 6833, 7278, 7351, 7353, 7355, 
    7357, 7359
  )

Query time 0.00163

Result

int(21)