UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 39, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 117 
WHERE 
  product_id IN (
    12505, 12506, 12507, 12508, 12509, 12510, 
    12511, 12512, 12513, 12514, 12515, 
    12516, 12517, 12518, 12519, 12520, 
    12521, 12522, 12523
  )

Query time 0.00225

Result

int(19)