UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 139, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 417 
WHERE 
  product_id IN (
    1517, 1518, 1519, 1520, 1521, 1522, 1523, 
    1524, 1525, 1537, 1538, 1539, 1540, 
    1541, 1542, 1543, 1544, 1545, 2217, 
    2218, 2219, 2735, 2863, 2864, 3729, 
    3732, 5220, 5221, 5222, 5223, 5224, 
    5225, 5226, 5227, 5237, 5238, 5239, 
    5240, 5241, 5242, 5243, 5244, 5817, 
    5818, 6322, 6448, 6449, 7494, 7495, 
    7498, 7499, 7504, 7505, 7526, 7527
  )

Query time 0.00277

Result

int(55)