Ora-00904 ref invalid identifier

Oracle 19 changed some things that made this query no longer valid.

This is fixed in the current version of Toad.

Uncheck here, that should fix it.