Nancy Gonzalez, the former prison guard from Huntington Station who conceived a child in prison with death-row inmate Ronell Wilson, has temporarily lost custody of the baby because of substance abuse, according to her lawyer.

Gonzalez, 29, faces sentencing Nov. 15 for the 2012 sex-in-prison escapade. Lawyer Anthony Ricco said in a sentencing memorandum that Gonzalez brought the baby to two meetings with Wilson's relatives, where she consumed alcohol, endangering the child.

advertisement | advertise on newsday

Ricco said an abuse and neglect proceeding is pending in Suffolk County Family Court, which could affect her maternal rights. Currently, the baby -- named Justus -- has been placed in foster care with Gonzalez's aunt.

Wilson was convicted of killing two NYPD detectives during an undercover gun buy in Staten Island in 2003, and was sentenced to death by a jury after a trial this summer in federal court in Brooklyn. He had sex with Gonzalez in the federal lockup in Brooklyn.

In October, a Suffolk judge rejected Wilson's bid to establish paternity over the child, which Gonzalez opposed. The judge ruled that Wilson's conviction extinguished his right to pursue the suit.

Ricco asked for leniency for Gonzalez in the sentencing papers, arguing her behavior with Wilson was the result of a long history of sexual abuse that began in childhood and included sexual opportunism by supervisors in the military and in her prison job.