UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 53, 
  `added` = 1, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 164 
WHERE 
  product_id IN (
    12685, 12686, 12687, 12688, 12689, 12690, 
    12691, 12692, 12693, 12694, 12695, 
    12696, 12697, 12698, 12699, 12700, 
    12701, 12702, 12703, 12704, 12705, 
    12706, 12707, 12708, 12709, 12710, 
    12711, 12712, 12713
  )

Query time 0.00268

Result

int(29)