UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 38, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 114 
WHERE 
  product_id IN (
    12465, 12466, 12467, 12468, 12469, 12470, 
    12471, 12472, 12473, 12474, 12475, 
    12476, 12477, 12478, 12479, 12480, 
    12481, 12482, 12483, 12484, 12485, 
    12486, 12487, 12488, 12489, 12490, 
    12491, 12492, 12493
  )

Query time 0.00333

Result

int(29)