[eluser]WanWizard[/eluser]
The query object ( a instance of the CI_DB_Result class ) is created and returned by $this->db->query().
This doesn't happen when:
- the query string is empty -> returns FALSE
- when the query failed to run -> display error or returns FALSE
- when is was a write query (INSERT, UPDATE, etc), returns TRUE
- when no return object is needed (currently only for Oracle SP's)
In these cases $query won't be an object. If this is happening, you need better error checking in your code...
My guess is that db errors are switched off in the config, and you have an error, so FALSE is returned.