When I want to access a function of a user defined model in CodeIgniter inside a custom user defined library it throws
Call to a member function Set_wher
You could try to instantiate your model object like:
include_once('path/modelname.php');
$home_model = new Home_model();
$home_model->set_where(....);
make sure your model extends de default CI model class.
You could also use $CI->load->model(modelname); instead of include... It's easier to deal with path problems, however it would be a little less efficient because load->model will instantiate an object.