SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    12713, 12712, 12711, 12710, 12709, 12708, 
    12707, 12706, 12705, 12685, 12686, 
    12687, 12688, 12689, 12690, 12691, 
    12692, 12693, 12694, 12695, 12696, 
    12697, 12698, 12699, 12700, 12701, 
    12702, 12703, 12704
  )

Query time 0.00043

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 (12713,12712,12711,12710,12709,12708,12707,12706,12705,12685,12686,12687,12688,12689,12690,12691,12692,12693,12694,12695,12696,12697,12698,12699,12700,12701,12702,12703,12704))"
    }
  }
}

Result

product_id
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713