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

Query time 0.00340

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": 16,
          "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
16697 16664 12516 277
16680 16664 12516 277
16679 16664 12516 277
16678 16664 12516 277
16677 16664 12516 277
16676 16664 12516 277
16675 16664 12516 277
16674 16664 12516 277
16673 16664 12516 277
16672 16664 12516 277
16671 16664 12516 277
16670 16664 12516 277
16669 16664 12516 277
16668 16664 12516 277
16667 16664 12516 277
16666 16664 12516 277
16665 16664 12516 277
16664 0 12516 277
5510 16664 12516 277