UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 7, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 21 
WHERE 
  product_id IN (
    12877, 12878, 12879, 12880, 12881, 12882, 
    12883, 12884, 12885, 12886, 12887, 
    12888, 12889, 12890, 12891, 12892, 
    12893, 12894, 12895
  )

Query time 0.00227

Result

int(19)