[Bugfix] fixed PostgreSqlQueryVisitor due to querying orders in resource
This only happened when the query had a ParameterSelection