UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 46, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 138 
WHERE 
  product_id IN (
    12715, 12716, 12717, 12718, 12719, 12720, 
    12721, 12722, 12723, 12724, 12725, 
    12726, 12727, 12728, 12729, 12730, 
    12731, 12732, 12733, 12734, 12735, 
    12736, 12737, 12738, 12739, 12740, 
    12741, 12742, 12743
  )

Query time 0.00202

Result

int(29)