A former prison officer who had a baby with an inmate has been jailed for 30 months after pleading guilty to misconduct in a public office.
Kelly-Anne McDade, 31, who worked at HM Aylesbury Young Offenders' Institution, in Buckinghamshire, gave birth to a baby boy in February.
It followed a relationship with Nelson Delgado, 21, described as a "dangerous offender", Aylesbury Crown Court heard.
Judge Christopher Tyrer described her behaviour as "disgraceful".
McDade also admitted taking three mobile phones into a young offenders' institution on 17 March this year.
She was sentenced to 18 months in prison for trying to smuggle the mobile phones, to be followed by a further 12 months for misconduct in public office.
The court was told McDade was arrested by Thames Valley Police after she sold her story to Closer magazine for £1,000.
A proceeds of crime hearing will be held next year to deal with the payment Ms McDade received from the magazine.
The court heard she had worked at the institution for three years when she started the sexual relationship with Delgado in 2008.
She resigned after she was seen on CCTV opening his cell door on 10 August 2008 when all doors at the institution had been closed for the night.
Nigel Ogborne, prosecuting, said other staff were already aware of her pregnancy.
He said: "She was asked by the prison authorities about the pregnancy and she indicated that it was as a result of a relationship on a foreign holiday."
Richard Germain, defending McDade, told the court: "There is no doubt it was an inappropriate relationship, but Ms McDade would say 'You can't help who you fall in love with'."
He said the case was "unique" and added: "At some point in the future, she and Mr Delgado hope to set up home together and bring up the child together."
The court heard McDade tried sending three mobile telephones concealed in a stereo in March this year, so she could contact Delgado at Swinfen Hall Young Offenders' Institute, Staffordshire, after the birth of their child.
Judge Tyrer told McDade: "Your training would have warned you what to do if your feelings for him, as they did, crossed the line."
He said: "Not only did you frequently have a sexual relationship with him, but you became pregnant by him and that means that you abused your position as a prison officer, and the trust placed with you by your colleagues, your superiors and the public.
"Love is not an excuse."