SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    6, 15, 19, 23, 29, 67, 82, 88, 217, 233, 
    306, 307
  )

Query time 0.00032

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": 12,
      "filtered": 100,
      "index_condition": "cscart_categories.category_id in (6,15,19,23,29,67,82,88,217,233,306,307)"
    }
  }
}

Result

id_path
6
2/7/15
2/7/19
23
2/10/29
308/3/13/67
308/3/13/82
308/3/13/88
217
308/231/233
306
307