SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (
    925, 1125, 1396, 1397, 1613, 1620, 1670, 
    1671
  )

Query time 0.00029

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.01470144,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_categories",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "p_category_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["category_id"],
          "loops": 1,
          "rows": 8,
          "cost": 0.01470144,
          "filtered": 100,
          "attached_condition": "cscart_categories.category_id in (925,1125,1396,1397,1613,1620,1670,1671)"
        }
      }
    ]
  }
}

Result

id_path
925
925/1125
925/1125/1396
925/1125/1397
215/1613
1617/1620
215/1613/1670
215/1613/1671