[eluser]flojon[/eluser]
There shouldn't be any problem with that code.
You should look at the value of $jm_resume_id when this happens,i.e., find the place where this function is called and make sure the argument is sane. It could be that it's set to NULL or FALSE.
You could also switch the where line to this and see if it helps
Code:
$this->db->where(array('jm_resume_id'=>$jm_resume_id));