bug in the error reporting if a relation does not exist in a query