SELECT 
  c.company_id 
FROM 
  cscart_products_categories pc 
  LEFT JOIN cscart_categories c ON c.category_id = pc.category_id 
WHERE 
  pc.product_id = 290 
GROUP BY 
  c.company_id

Query time 0.00033

JSON explain

{
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "c.company_id",
      "temporary_table": {
        "nested_loop": [
          {
            "table": {
              "table_name": "pc",
              "access_type": "ref",
              "possible_keys": ["pt"],
              "key": "pt",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "ref": ["const"],
              "rows": 1,
              "filtered": 100
            }
          },
          {
            "table": {
              "table_name": "c",
              "access_type": "eq_ref",
              "possible_keys": ["PRIMARY", "p_category_id"],
              "key": "PRIMARY",
              "key_length": "3",
              "used_key_parts": ["category_id"],
              "ref": ["u358358020_main.pc.category_id"],
              "rows": 1,
              "filtered": 100
            }
          }
        ]
      }
    }
  }
}

Result

company_id
1