Build Join is not passed values/query when an array