[eluser]Pascal Kriete[/eluser]
Ok, let's see here.
A note right off the bat, $query->result() returns an array of objects already, no need to create it again.
What you need to do here is two sql joins, with aliases for the users table, since it's ambiguous.
Code:
$this->db->select('comments.*, commenters.name, repliers.name AS reply_from')
$this->db->from('comments');
$this->db->join('users commenters', 'comments.name = commenters.id', 'left');
$this->db->join('users repliers', 'comments.reply_from = repliers.id', 'left');
$this->db->orderby('comments.id', 'desc');
$this->db->where('comments.to', $to);
$query = $this->db->get();
Untested, and a little complicated, but I think it should work. Gives you $comment->name and $comment->reply_from (felt bad using from since it's a sql action).
Try that and let us know how it goes.
[EDIT: fixed table name]