SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    1, 15, 16, 17, 19, 20, 26, 41, 43, 44, 46, 
    47, 52, 53, 54, 55, 60, 64, 67, 68, 69, 
    73, 74, 79, 83, 94, 101, 109, 120, 123, 
    175, 179, 192, 229, 230, 233, 234, 235, 
    236, 237, 238, 240, 241, 251, 255, 258, 
    261, 264, 265, 267, 295, 304, 306, 336
  )

Query time 0.00050

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": ["PRIMARY"],
      "rows": 240,
      "filtered": 22.5,
      "attached_condition": "cscart_categories.category_id in (1,15,16,17,19,20,26,41,43,44,46,47,52,53,54,55,60,64,67,68,69,73,74,79,83,94,101,109,120,123,175,179,192,229,230,233,234,235,236,237,238,240,241,251,255,258,261,264,265,267,295,304,306,336)"
    }
  }
}

Result

id_path
2/7/16
2/7/20
2/9/26
308/3/14/94
308/3/14/123
308/3/14/101
308/3/14/109
1
308/231/233
2/7/17
308/231/234
308/232/240
308/3/12/41
2/7/15
308/231/235
308/232/241
2/7/19
308/231/236
308/3/12/43
229
308/231/237
230
308/231/238
308/3/12/44
308/3/13/52
308/3/12/175
308/3/12/46
308/3/13/53
308/3/13/54
308/3/12/47
308/3/13/55
308/3/13/192
308/3/13/60
308/3/13/64
308/3/13/120
308/3/13/67
308/3/13/68
308/3/13/69
308/3/13/73
308/3/13/74
308/3/13/79
308/3/13/83
308/3/13/179
308/3/14/251
255
275/258
308/3/12/261
262/264
262/265
262/267
308/3/13/295
2/8/304
306
262/336