UPDATE 
  cscart_product_popularity 
SET 
  `viewed` = 346, 
  `added` = 0, 
  `deleted` = 0, 
  `bought` = 0, 
  `total` = 963 
WHERE 
  product_id IN (
    3166, 3167, 3168, 3169, 3171, 3172, 3174, 
    3175, 3176, 3177, 3180, 3181, 3182, 
    3183, 3184, 3185, 3186, 3187, 3190, 
    3191, 3192, 3193, 3194, 3195, 3197, 
    3198, 3271, 3272, 3273, 3275, 3278, 
    3279, 3280, 3281, 3282, 3283, 3284, 
    3288, 3289, 3291, 3294, 3295, 3865, 
    6737, 6738, 6739, 6740, 6741, 6742, 
    6743, 6745, 6746, 6747, 6748, 6751, 
    6752, 6753, 6754, 6755, 6756, 6757, 
    6758, 6759, 6762, 6763, 6765, 6766, 
    6769, 6820, 6821, 6823, 6826, 6827, 
    6828, 6829, 6830, 6831, 6832, 6835, 
    6836, 6837, 6838, 6839, 6842, 7008, 
    7009, 7032, 7033, 7034, 7071, 7072, 
    7095, 7096, 7110, 7111, 7112, 7113, 
    7180, 7181, 7182, 7223
  )

Query time 0.00465

Result

int(101)