You can remember the meaning of 坐牢 with this easy mnemonic:
I have imprisoned my child by asking him to sit (坐) his butt firmly (牢) in the chair.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.