SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    184, 185, 394, 494, 543, 634, 640, 641, 
    642, 643, 644, 645, 647, 657, 658, 662, 
    696, 708
  )

Query time 0.00073

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "43.21"
    },
    "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": 18,
      "rows_produced_per_join": 18,
      "filtered": "100.00",
      "index_condition": "(`ea201_diorama`.`cscart_categories`.`category_id` in (184,185,394,494,543,634,640,641,642,643,644,645,647,657,658,662,696,708))",
      "cost_info": {
        "read_cost": "39.61",
        "eval_cost": "3.60",
        "prefix_cost": "43.21",
        "data_read_per_join": "46K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ]
    }
  }
}

Result

id_path
184
185
394
185/494
185/543
634
634/640
634/641
634/642
634/643
634/644
634/645
634/647
634/657
634/658
634/662
696
708