(bug 22310) Only need to declare $join_conds once