You need to talk to the imps and the guards
Are there any specific ones? I went back and forth between the room of the first guard and the second (including both left and right rooms) and I found only an imp talking about spike attack.
I think you need to start on the left side prisoner and go from there, if I remember correctly.