AnthonyAttached a complete welcome application that demonstrate the problemJust register and you should get the errorThere are two tables of interest org table in db.py and shop table in tables.pythe org table has a reference to the shop table and there is a select() on the org table in menu.py that I think triggers the error