Fixed multiple table joins

Fix subsequent joins of the same type from overwriting the prior join