UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 14, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 42 
WHERE 
  product_id IN (
    511, 512, 3672, 3673, 3674, 4270, 7471, 
    7472, 7473, 7474, 7475, 7476, 7477
  )

Query time 0.00170

Result

int(13)