SELECT 
  gp.*, 
  p.company_id 
FROM 
  cscart_product_variation_group_products AS gp 
  LEFT JOIN cscart_products AS p ON gp.product_id = p.product_id 
WHERE 
  gp.group_id IN (58)

Query time 0.00058

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "gp",
      "access_type": "ref",
      "possible_keys": ["idx_group_id"],
      "key": "idx_group_id",
      "key_length": "3",
      "used_key_parts": ["group_id"],
      "ref": ["const"],
      "rows": 10,
      "filtered": 100
    },
    "table": {
      "table_name": "p",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "3",
      "used_key_parts": ["product_id"],
      "ref": ["herbaria_cscart_4_18.gp.product_id"],
      "rows": 1,
      "filtered": 100
    }
  }
}

Result

product_id parent_product_id group_id position company_id
376 5476 58 0 1
1612 5476 58 0 1
1613 5476 58 0 1
1614 5476 58 0 1
1615 5476 58 0 1
1616 5476 58 0 1
1617 5476 58 0 1
1618 5476 58 0 1
5476 0 58 0 1