SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    1, 20, 44, 46, 47, 61, 67, 70, 73, 75, 76, 
    77, 81, 83, 87, 88, 90, 94, 95, 107, 233, 
    236, 241, 242, 258, 261, 306
  )

Query time 0.00048

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": ["PRIMARY"],
      "rows": 240,
      "filtered": 11.25,
      "attached_condition": "cscart_categories.category_id in (1,20,44,46,47,61,67,70,73,75,76,77,81,83,87,88,90,94,95,107,233,236,241,242,258,261,306)"
    }
  }
}

Result

id_path
2/7/20
308/3/14/94
308/3/14/95
308/3/14/107
1
308/231/233
308/232/241
308/231/236
308/232/242
308/3/12/44
308/3/12/46
308/3/12/47
308/3/13/61
308/3/13/67
308/3/13/70
308/3/13/73
308/3/13/75
308/3/13/76
308/3/13/77
308/3/13/81
308/3/13/83
308/3/13/87
308/3/13/88
308/3/13/90
275/258
308/3/12/261
306