Neither 'InstrumentedAttribute' object nor 'Comparator' object associated with FooBar.bar has an attribute 'foo'
AttributeError while querying: Neither 'InstrumentedAttribute' object nor 'Comparator' has an attribute