UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 4, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 12 
WHERE 
  product_id IN (
    13247, 13248, 13249, 13250, 13251, 13252
  )

Query time 0.00228

Result

int(6)