SELECT 
  id_path 
FROM 
  tmall_categories 
WHERE 
  category_id IN (198, 199)

Query time 0.00744

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.004212994,
    "nested_loop": [
      {
        "table": {
          "table_name": "tmall_categories",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "p_category_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["category_id"],
          "loops": 1,
          "rows": 2,
          "cost": 0.004212994,
          "filtered": 100,
          "index_condition": "tmall_categories.category_id in (198,199)"
        }
      }
    ]
  }
}

Result

id_path
166/196/198
166/196/199