Former Rep. Marjorie Margolies has lost the Democratic primary to represent Pennsylvania's 13th District, the Associated Press reports. State Rep. Brendan Boyle secured the party's nomination on Tuesday.

Boyle led Margolies, his next closest primary opponent, 41 percent to 27 percent, with 94 percent of precincts reporting

Margolies, who served one term in Congress, is Chelsea Clinton's mother-in-law. She had received a significant amount of campaign help from the family: former Secretary of State Hillary Clinton attended a fundraiser for Margolies last week, while former President Bill Clinton starred in a television ad and attended a pair of fundraisers for her.

Margolies represented the more conservative 13th District from 1993 to 1995, which after redistricting became significantly more Democratic-leaning. She was defeated after voting for Clinton's tax-raising budget proposal.

State Sen. Daylin Leach and physician Val Arkoosh also contested the nomination to succeed Rep. Allyson Schwartz (D-Pa.).

Margolies had struggled to raise money throughout the campaign, before Leach filed a Federal Election Commission complaint accusing her of violating campaign finance law by using funds raised for the general election during the primary.

A HuffPost investigation detailed how a charity run by Margolies spent an unusually large proportion of its revenue on her salary and benefits. Subsequent reports suggest that she was involved, as both chief executive and chairman of the Women's Campaign International, in a 2001 vote to more than double her own pay at the charity.