SELECT 
  storefronts.* 
FROM 
  cscart_storefronts AS storefronts 
  LEFT JOIN cscart_storefronts_companies AS companies ON storefronts.storefront_id = companies.storefront_id 
WHERE 
  1 = 1 
  AND (
    companies.company_id IN ('1')
  ) 
GROUP BY 
  storefronts.storefront_id 
ORDER BY 
  storefronts.is_default desc

Query time 0.00024

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "storefronts",
          "access_type": "system",
          "possible_keys": ["PRIMARY"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "companies",
          "access_type": "system",
          "possible_keys": ["PRIMARY", "idx_storefront_id"],
          "rows": 1,
          "filtered": 100
        }
      }
    ]
  }
}

Result

storefront_id url redirect_customer is_default status access_key name theme_name is_accessible_for_authorized_customers_only
1 shavgun.com N Y N CS-Cart responsive N