UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 63, 
  `added` = 17, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 50271 
WHERE 
  product_id IN (
    51225, 51226, 51227, 51228, 51229, 51230, 
    51231
  )

Query time 0.00041

Result

int(7)