Long Island’s horny harbormaster wants a new trial, claiming the judge who oversaw his losing battle against the Town of Huntington failed to disclose a conflict of interest involving her son.

Ed Yule, the lawyer for ex-Huntington harbormaster William Perks, filed a motion with federal Judge Joanna Seybert in Suffolk County requesting a hearing to determine if any improper conflict existed.

Yule said Seybert’s son works for a law firm that received almost $200,000 in fees from Huntington.

“This should have been disclosed to Mr. Perks during the civil trial,” Yule said. “It just stinks. It’s a big deal and, in a politically charged case like this, you have to be careful.

“I find it hard to believe that, in a case that’s been litigated for six years, the town didn’t know,” said Yule.

“If it’s true, the judge should be embarrassed,” said Perks. “I thought that was Law School 101.”

The judge and her son declined to comment, but a spokeswoman for the law firm, Laurie Bloom, said, “the firm had no involvement in the case. There’s no connection. We don’t know what he’s talking about.”

Ernest Stolzer, a lawyer for Huntington, said the town “didn’t know that Judge Seybert had a son and, as a consequence, didn’t know that he worked for” a firm that did business with the municipality.

“I think it’s frivolous,” said Stolzer.

Perks, 53, demanded $12 million from former Councilwoman Susan Scarpati-Reilly, 53, claiming she sexually harassed and stalked him after he broke off their 18-month affair in 1998, when he began dating the woman he later wed.

He claimed the pair enjoyed romantic sailboat cruises along Huntington Harbor, after-hours romps in his houseboat, sex in her Town Hall office and even a red-hot weekend getaway at the upstate Mohonk Mountain House.

Scarpati-Reilly denied the pair ever had sex, and a federal jury last fall sank Perks’ case.

The jury found that, while she had subjected Perks to unwelcome sexual advances, her behavior did not create a hostile work environment.

The jury also let the town off the hook for monetary damages, ruling it never retaliated against Perks after he complained about Scarpati-Reilly.