While searching the cell phone belonging to an ex-NYPD cop accused of sexually assaulting an 18-year-old girl in the fall, investigators discovered illicit text messages and calls between the officer and a local prosecutor.

Kings County Assistant District Attorney, Nicole Manini, 34, allegedly had an extramarital affair with former detective Richard Hall, 33, according to the New York Post.

'During our investigation of this case, we learned that a junior assistant district attorney in our office was engaged in an intimate relationship with defendant Hall and knew [second] defendant [Eddie] Martins socially,' a spokesperson for the District Attorney's office told the Post.

'This ADA had no involvement in or access to the investigation or prosecution,' the rep said. 'Out of an abundance of caution, we have disclosed this information to all relevant parties.'

Prosecutor Nicole Manini, 34, (shown right on LinkedIn) allegedly had an affair with former NYPD detective Richard Hall, 33 (left)

NYPD Narcotics detectives Hall and Eddie Martins (left) were charged with first-degree rape of an 18-year-old girl

Sources told the Post Manini and Hall began the affair prior to the September incident and continued the relationship after.

Narcotics detectives Hall and Eddie Martins were charged in October with first-degree rape, first-degree criminal sexual act, second-degree kidnapping, official misconduct and related counts for the allegedly sexual assault of a teen girl in the back of their van on September 15.

The victim, who uses the Twitter alias Anna Chambers, claimed one of the men raped her and both forced her to perform oral sex on them in a Chipotle parking lot.

Chambers confirmed to DailyMail.com she is the victim. She also gave permission to have her photos posted publicly.

Anna Chambers (shown above on Facebook) is the teen who claimed she was handcuffed and attacked inside the police van in September

Hall and Martins did not deny the teen's allegations and claimed the three-way sex acts were consensual

The teen got arrested in Brooklyn at the time after she was caught smoking marijuana and in possession of illegal prescription pills.

Hall and Martins did not deny the teen's allegations and claimed the three-way sex acts were consensual.

A press release at the time stated that around 8pm that day, Martins and Halls pulled up to the Calvert Vaux Park where Chambers was sitting in her car.

The two detectives observed marijuana in the teen's cup holder and ordered her to get out of her car.

Investigators reportedly found illicit messages between Hall (pictured) and Kings County Assistant District Attorney Manini

When the cops asked if she had any drugs on her, Chambers admitted she had marijuana and two Klonopin pills.

She was then arrested and placed in handcuffs. Two male companions who were with Chambers were let go by police, who asked them to pick her up in a few hours from the the 60th Precinct.

The officers then allegedly told the teen to tell her friends not to follow their van.

The press release said 'Detective Martins allegedly told the young woman he and his partner are "freaks" and asked her what she wanted to do to get out of the arrest' before the alleged rape.

In a court appearance last month, Hall and Martins filed motion to dismiss the case, accusing prosecutors of 'sanitizing the truth'.

The motion alleged Chambers was 'too high' to remember specific details of the alleged attack in September.

If convicted on the charges, the former detectives each face up to 25 years in prison.