The arrested prisoner was lodged in the prison in connection with a case under the Protection of Children from Sexual Offences Act