These two phrases mean basically the same thing. This can be stated in active form. AT: "the enemy has trapped them all in pits and held them captive in prisons" (See: [[rc://en/ta/man/translate/figs-parallelism]] and [[rc://en/ta/man/translate/figs-activepassive]])