SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    6, 15, 16, 17, 18, 61, 62, 67, 68, 73, 82, 
    83, 206, 233, 234, 235, 236, 237, 238, 
    242, 264, 306, 336
  )

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_categories",
      "access_type": "range",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["category_id"],
      "rows": 23,
      "filtered": 100,
      "index_condition": "cscart_categories.category_id in (6,15,16,17,18,61,62,67,68,73,82,83,206,233,234,235,236,237,238,242,264,306,336)"
    }
  }
}

Result

id_path
6
2/7/15
2/7/16
2/7/17
2/7/18
308/3/13/61
308/3/13/62
308/3/13/67
308/3/13/68
308/3/13/73
308/3/13/82
308/3/13/83
2/8/206
308/231/233
308/231/234
308/231/235
308/231/236
308/231/237
308/231/238
308/232/242
262/264
306
262/336