CA Gen ORA-00904 invalid identifier errors at runtime on Link Tables due to incorrect SQL