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

Query time 0.00308

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": 24,
          "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
48868 0 17215 27
48904 48868 17215 27
48905 48868 17215 27
48906 48868 17215 27
48907 48868 17215 27
48908 48868 17215 27
48909 48868 17215 27
48910 48868 17215 27
48911 48868 17215 27
48912 48868 17215 27
48913 48868 17215 27
48914 48868 17215 27
48915 48868 17215 27
48916 48868 17215 27
48917 48868 17215 27
48918 48868 17215 27