Embattled State Sen. Shirley Huntley has lost her primary fight to hold on to the Democratic nomination for her State Senate seat.
City Councilman James Sanders was declared the winner over Huntley in the Democratic primary for the District 10 State Senate nomination.
According to the Associated Press with 100 percent of precincts reporting, Sanders had 57 percent of the vote while Huntley had 40 percent. Third challenger Gian Jones had 3 percent of the vote.
Huntley was indicted last month after being accused of committing fraud in a conspiracy to steal taxpayer funds.
In Upper Manhattan, Democratic State Sen. Adriano Espaillat was declared the winner in his primary race against Guillermo Linares.
AP numbers show that with 90 percent of precincts reporting, Espaillat has 64 percent of the vote to Linares's 36 percent.
Their race turned ugly after Espaillat accused Linares of betraying the Latino community by supporting Charles Rangel earlier this year when Espaillat ran for Congress.
Huntley was one of several incumbents facing legal trouble embroiled in primary fights.
The AP is also reporting that one of those incumbents, Democratic Assemblywoman Naomi Rivera, was defeated in her primary fight in the 80th District by Mark Gjonaj.
According to unofficial results reported by the AP, with 100 percent of the precincts reporting, Gjonaj received 52 percent of the vote while Rivera received 41 percent. There were two other candidates in the race.
Rivera is under investigation for a number of alleged violations, including using public money to put companions on government payrolls.
Meanwhile, Democratic Brooklyn Assemblyman William Boyland, who was arrested on federal bribery charges last year, was declared the winner over six challengers in his own primary in the 55th District.
The AP is reporting with 100 percent of the vote in, Boyland led his primary 37 percent of the vote. Nearest challenger Anthony Jones has 15 percent, with Roy Antoine at 13 percent, Nathan Bradley at 12 percent, Anthony Herbert at 11 percent David R. Miller at 6 percent and Christopher Durosinmi at 5 percent.
In the State Senate's 15th district, NY1 has declared Eric Ulrich the winner in his primary battle for the Republican nomination against Juan Reyes.
Ulrich had 70 percent of the vote in the race for the GOP nomination with 100 percent of precincts reporting, and Reyes had 30 percent, according to the AP.
Ulrich will face incumbent State Sen. Joseph Addabbo in what is expected to be a tightly-contested general election.
That race also turned nasty after Reyes sent out a mailing accusing Ulrich of flip-flopping on supporting gay marriage.
And Walter Mosley won the battle for the Democratic nomination in the race to take over Hakeem Jeffries's Assembly seat in the 57th District.
According to the AP, with 100 percent of precincts reporting, Mosley had 63 percent of the vote. His nearest challenger, Olanike Alabi, had 30 percent, while Martine Guerrier had 7 percent.
Upstate, two of three Republican senators who voted for gay marriage last year -- Roy McDonald of Saratoga County and Stephen Saland of Poughkeepsie -- ended the night with their races too close to call.
The third Republican senator to support same-sex marriage, Mark Grisanti in Buffalo, easily won his primary.
For more information on Thursday's races, visit the Board of Elections website at vote.nyc.ny.us.