I am having problems figuring out how to solve the following error when trying to combine two queries:
Msg 8120, Level 16, State 1, Line 3 Column \'dbo.t