UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 24, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 72 
WHERE 
  product_id IN (
    12851, 12852, 12853, 12854, 12855, 12856, 
    12857, 12858, 12859, 12860, 12861, 
    12862, 12863, 12864, 12865, 12866, 
    12867, 12868
  )

Query time 0.00381

Result

int(18)