SELECT 
  id_path 
FROM 
  categories c 
  JOIN category_vendor_product_count p USING(category_id) 
WHERE 
  p.company_id = 133

Query time 0.00203

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "19.71"
    },
    "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": 42,
          "rows_produced_per_join": 42,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "0.81",
            "eval_cost": "4.20",
            "prefix_cost": "5.01",
            "data_read_per_join": "672"
          },
          "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": [
            "goimagine.p.category_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 42,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "10.50",
            "eval_cost": "4.20",
            "prefix_cost": "19.71",
            "data_read_per_join": "109K"
          },
          "used_columns": [
            "category_id",
            "id_path"
          ]
        }
      }
    ]
  }
}

Result

id_path
8
2/15
2/18
8/40
71/75
78
2/81
2/82
3/87
5/93
5/96
5/97
109
109/112
109/116
109/117
109/118
109/123
109/124
12/319/128
2/13/134
2/13/137
2/17/147
2/17/148
2/18/173
181
4/45/183
4/51/256
3047
3049
3050
3051
3052
3054
3363
3431
3640
3641
3696
4129
4/45/6634
8/40/6737