SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    12725, 12726, 12727, 12728, 12729, 12730, 
    12731, 12732, 12733, 12734, 12735, 
    12736, 12737, 12738, 12739, 12740, 
    12741, 12742, 12743, 12724, 12723, 
    12722, 12721, 12720, 12719, 12718, 
    12717, 12716, 12715
  )

Query time 0.00056

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 (12725,12726,12727,12728,12729,12730,12731,12732,12733,12734,12735,12736,12737,12738,12739,12740,12741,12742,12743,12724,12723,12722,12721,12720,12719,12718,12717,12716,12715))"
    }
  }
}

Result

product_id
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743