Book of Deuteronomy have given various answers to the problem. The Deuteronomistic history theory is currently the most popular (Deuteronomy was originally just the law code and covenant, written to cement the religious reforms of Josiah, and later expanded to stand as the introduction to the full history); but there is an older theory which sees Deuteronomy as belonging to Numbers, and Joshua as a sort of supplement to it. This idea still has supporters, but the mainstream understanding is that Deuteronomy, after becoming the introduction to the history, was later detached from it and included with Genesis-Exodus-Leviticus-Numbers because it already had Moses
Homosexuality in the New Testament was restricted to pederasty; beyond doubt, the NT here repeats the Leviticus condemnation of all same-sex relations". Similarly, Campbell writes, "it must be pointed out, first, that "arsenokoitēs" is a broad term that cannot be confined to specific instances of homosexual activity such as male prostitution or pederasty. This is in keeping with the term's Old Testament background where lying with a 'male' (a very general term) is proscribed, relating to every kind of male-male intercourse." Campbell (quoting from Wenham) goes on to say that, "in fact, the Old Testament bans every type of homosexual intercourse, not just male prostitution