add the joined table fields into select