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 (17318)

Query time 0.00111

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "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": 26,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "p",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["dev_db.gp.product_id"],
          "rows": 1,
          "filtered": 100
        }
      }
    ]
  }
}

Result

product_id parent_product_id group_id company_id
49879 40824 17318 424
49877 40824 17318 424
49878 40824 17318 424
49880 40824 17318 424
40824 0 17318 424
49881 40824 17318 424
49882 40824 17318 424
49883 40824 17318 424
49884 40824 17318 424
49885 40824 17318 424
49886 40824 17318 424
49887 40824 17318 424
49888 40824 17318 424
49889 40824 17318 424
49890 40824 17318 424
49891 40824 17318 424
49892 40824 17318 424
49893 40824 17318 424