SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    431561, 431562, 431563, 431564, 431565, 
    431566, 431567, 431568, 431569, 431587, 
    431588, 431589, 431591, 431592, 431593, 
    431594, 431595, 431596, 431597, 431598, 
    431599, 431600, 431601, 431602, 431603, 
    431604
  )

Query time 0.00104

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "11.44"
    },
    "table": {
      "table_name": "cscart_product_popularity",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "total"
      ],
      "key": "total",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 26,
      "rows_produced_per_join": 26,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "6.24",
        "eval_cost": "5.20",
        "prefix_cost": "11.44",
        "data_read_per_join": "832"
      },
      "used_columns": [
        "product_id"
      ],
      "attached_condition": "(`webmarco`.`cscart_product_popularity`.`product_id` in (431561,431562,431563,431564,431565,431566,431567,431568,431569,431587,431588,431589,431591,431592,431593,431594,431595,431596,431597,431598,431599,431600,431601,431602,431603,431604))"
    }
  }
}

Result

product_id
431561
431562
431563
431564
431565
431566
431567
431568
431569
431587
431588
431589
431591
431592
431593
431594
431595
431596
431597
431598
431599
431600
431601
431602
431603
431604