Call to a member function item() on a non-object in “Language.php” on line .. (CodeIgniter)

This error is a bit misleading and i’m a victim on several occasion. error occurs on CodeIgniter 1.7.2 (or i think in any version).

One possible fix for this error is that the credentials provided database.php is wrong so double check that.