SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    6, 48, 49, 51, 53, 55, 56, 57, 60, 61, 62, 
    64, 65, 67, 68, 69, 70, 71, 73, 74, 75, 
    76, 77, 79, 80, 81, 82, 83, 84, 85, 86, 
    87, 88, 89, 90, 91, 119, 122, 181, 192, 
    200, 226, 244, 254, 273, 281, 304, 306
  )

Query time 0.00055

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_categories",
      "access_type": "ALL",
      "possible_keys": ["PRIMARY"],
      "rows": 240,
      "filtered": 20,
      "attached_condition": "cscart_categories.category_id in (6,48,49,51,53,55,56,57,60,61,62,64,65,67,68,69,70,71,73,74,75,76,77,79,80,81,82,83,84,85,86,87,88,89,90,91,119,122,181,192,200,226,244,254,273,281,304,306)"
    }
  }
}

Result

id_path
308/3/13/48
308/3/13/49
6
308/3/13/200
308/3/13/51
308/3/13/53
308/3/13/55
308/3/13/56
308/3/13/57
308/3/13/192
308/3/13/60
308/3/13/61
308/3/13/244
308/3/13/62
308/3/13/119
308/3/13/64
308/3/13/65
308/3/13/181
308/3/13/67
308/3/13/68
308/3/13/69
308/3/13/70
308/3/13/71
308/3/13/226
308/3/13/73
308/3/13/122
308/3/13/74
308/3/13/75
308/3/13/76
308/3/13/77
308/3/13/79
308/3/13/80
308/3/13/81
308/3/13/82
308/3/13/83
308/3/13/84
308/3/13/85
308/3/13/86
308/3/13/87
308/3/13/88
308/3/13/89
308/3/13/90
308/3/13/91
308/3/13/254
308/3/13/273
275/281
2/8/304
306