What you need to do is let the prisoners out - that will give you clues to your next move. In the torture room near their cells is a rack that says it's been used frequently. Move your cursor over it (top right) and you'll a place you can 'use' it - this will open the cells.
__________________
|