Queryies that select an attribute from an entity class that does not contain that attribute are invalid.