SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    221, 1215, 1373, 10448, 10462, 10463, 
    10467, 10468
  )

Query time 0.00047

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "11.24"
    },
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY",
        "p_category_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "category_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 8,
      "rows_produced_per_join": 8,
      "filtered": "100.00",
      "cost_info": {
        "read_cost": "9.64",
        "eval_cost": "1.60",
        "prefix_cost": "11.24",
        "data_read_per_join": "47K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ],
      "attached_condition": "(`webmarco`.`cscart_categories`.`category_id` in (221,1215,1373,10448,10462,10463,10467,10468))"
    }
  }
}

Result

id_path
5368/5388/219/221
5368/5388/219/1215
5368/5388/219/1215/1373
5368/5388/219/10448
5368/5388/219/10462
5368/5388/219/10462/10463
5368/5388/219/10462/10467
5368/5388/219/10462/10468