Add the table to the query. This is needed when using a Type table.

The appropiate table needs to be added to the query when using a sql specification.
When a field from a type table is used within a sql specification, an error will be thrown:

The multi-part identifier "typetable.field" could not be bound.