But Jeroboam caused an ambush to go around behind them; so they were in front of Judah, and the ambush was behind them.