[eluser]TheFuzzy0ne[/eluser]
You're using var_dump after the loop has ended, which isn't very helpful. Of course it will be FALSE when the loop ends! That's the loop condition (loop while not FALSE).
I'm not sure why you're using $this->db->set(). I'm pretty sure I didn't in my code. You need to use $this->db->query();