The class that it's complaining about only has one reference in the core code.
QApplicationBase::$ClassFile['qqn'] = __DATAGEN_CLASSES__ . '/QQN.class.php';
You say that you're using the code generator, so I would have expected that class to have been generated.
The exact error you're seeing is Call to undefined method QQN::navigation()
which means that:
i) Your code is able to find the class 'QQN'.
ii) The class 'QQN' as defined probably in the file __DATAGEN_CLASSES__ . '/QQN.class.php'
doesn't contain a function called Navigation.
And if you do have a navigation
table, and are running the code generator, it apparently should be able available as QQN::Navigation() , which means that either you're not running the code generator or it's not working properly.
The only way to figure this out is to step through the code generator and see why it's either not picking up your Navigation object, or why it's not being generated correctly.