Undid the query I was writing to join the tables. It is going to need to be in it's own function. will look at it again in the morning.