SELECT 
  id_path 
FROM 
  cscart_categories c 
  JOIN cscart_category_vendor_product_count p USING(category_id) 
WHERE 
  p.company_id = 613

Query time 0.00104

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "51.46"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "p",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "company_id"
          ],
          "key_length": "4",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 36,
          "rows_produced_per_join": 36,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "1.06",
            "eval_cost": "7.20",
            "prefix_cost": "8.26",
            "data_read_per_join": "576"
          },
          "used_columns": [
            "company_id",
            "category_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "c",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY",
            "p_category_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "category_id"
          ],
          "key_length": "3",
          "ref": [
            "webmarco.p.category_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 36,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "36.00",
            "eval_cost": "7.20",
            "prefix_cost": "51.46",
            "data_read_per_join": "213K"
          },
          "used_columns": [
            "category_id",
            "id_path"
          ]
        }
      }
    ]
  }
}

Result

id_path
266/930/932/933/953
2653
2653/2656
2653/2658
2653/2658/2695
2653/2658/2695/2711
2653/2658/2724
2653/2658/2769
2653/2658/2789
2653/2760/2793
2653/2658/2800
2653/2760/2821
2653/2658/2837
2653/2760/2848
2653/2760/2855
2653/2658/2849/2868
2653/2853/2874
2653/2658/2837/2898
2653/2658/2837/2902
2653/2658/2837/2905
2653/2658/9257
2653/2658/9276
9697/9746
2653/9965
2653/9965/9966
2653/9968
2653/9965/9971
2653/9965/9977
2653/9965/9986
2653/9965/9994
9997/9999/10008/10009
9997/9999/10008/10016
9997/9999/10018/10019
9997/10001/10078
10193/10197/10198
10193/10197/10229