SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    12653, 12652, 12651, 12650, 12649, 12648, 
    12647, 12646, 12645, 12644, 12643, 
    12642, 12641, 12640, 12639, 12625, 
    12626, 12627, 12628, 12629, 12630, 
    12631, 12632, 12633, 12634, 12635, 
    12636, 12637, 12638
  )

Query time 0.00187

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.19"
    },
    "table": {
      "table_name": "cscart_product_popularity",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "total"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 29,
      "rows_produced_per_join": 29,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "3.29",
        "eval_cost": "2.90",
        "prefix_cost": "6.19",
        "data_read_per_join": "928"
      },
      "used_columns": [
        "product_id"
      ],
      "attached_condition": "(`test2_gaseus`.`cscart_product_popularity`.`product_id` in (12653,12652,12651,12650,12649,12648,12647,12646,12645,12644,12643,12642,12641,12640,12639,12625,12626,12627,12628,12629,12630,12631,12632,12633,12634,12635,12636,12637,12638))"
    }
  }
}

Result

product_id
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653