State Sen. Tony Avella said Monday he'll attempt to retain his seat by running on two minor-party lines after losing a Democratic primary last month to former New York City Comptroller John Liu.

Avella (D-Queens) was one of six members of the renegade Independent Democratic Conference – a group of Dems who had formed a partnership with Republicans to keep the Senate in GOP control – who lost primaries to a mainline Democrat in September.

But, so far, Avella is the first lone one to say he’ll stay in the race.

“After listening to my fellow residents I cannot simply walk away from the battles we have fought together to keep our quality of life and maintain the character of our neighborhoods,” Avella said in a message posted online.

Avella, who lives in Bayside, has the backing of the Independence and Women’s Equality parties. His district covers parts of northeast Queens, running right along the Nassau County border.

Rank-and-file Democrats and progressive groups have blamed the IDC for helping Republicans back liberal legislation in the state Senate and had vowed to oust them in primaries. Only two of the eight IDC members won their primaries last month.

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Out East: Mecox Bay Dairy ... Newsday Cheer Fest ... Get the latest news and more great videos at NewsdayTV

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Out East: Mecox Bay Dairy ... Newsday Cheer Fest ... Get the latest news and more great videos at NewsdayTV

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME