move the join on entries as the first join