SELECT 
  id_path 
FROM 
  cscart_categories 
WHERE 
  category_id IN (1614, 1617, 1623, 1680)

Query time 0.00020

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.00774628,
    "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": 4,
          "cost": 0.00774628,
          "filtered": 100,
          "attached_condition": "cscart_categories.category_id in (1614,1617,1623,1680)"
        }
      }
    ]
  }
}

Result

id_path
215/1614
1617
1617/1623
215/1614/1680