SELECT 
  product_id 
FROM 
  cscart_product_popularity 
WHERE 
  product_id IN (
    7272, 7273, 7274, 7275, 7276, 7277, 7347, 
    7348, 7349, 7350, 1329, 1325, 1327, 
    1328, 5075, 5071, 5073, 5074, 1333, 
    1331, 1332, 5077, 5078, 6714
  )

Query time 0.00052

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "5.17"
    },
    "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": 24,
      "rows_produced_per_join": 24,
      "filtered": "100.00",
      "using_index": true,
      "cost_info": {
        "read_cost": "2.77",
        "eval_cost": "2.40",
        "prefix_cost": "5.17",
        "data_read_per_join": "768"
      },
      "used_columns": [
        "product_id"
      ],
      "attached_condition": "(`gaseus`.`cscart_product_popularity`.`product_id` in (7272,7273,7274,7275,7276,7277,7347,7348,7349,7350,1329,1325,1327,1328,5075,5071,5073,5074,1333,1331,1332,5077,5078,6714))"
    }
  }
}

Result

product_id
1325
1327
1328
1329
1331
1332
1333
5071
5073
5074
5075
5077
5078
6714
7272
7273
7274
7275
7276
7277
7347
7348
7349
7350