diff U5 realname_userreference.module realname_userreference.module
--- realname_userreference.module	Thu Jun 23 14:51:37 2011
+++ realname_userreference.module	Thu Jun 23 14:53:30 2011
@@ -371,12 +371,13 @@
     $match_operators = array(
       'contains' => $like ."'%%%s%%'",
       'equals' => "= '%s'",
       'starts_with' => $like ."'%s%%'",
     );
-    $where[] = 'n.realname '. (isset($match_operators[$match]) ? $match_operators[$match] : $match_operators['contains']);
+    $where[] = '(n.realname '. (isset($match_operators[$match]) ? $match_operators[$match] : $match_operators['contains']).')OR(u.name '. (isset($match_operators[$match]) ? $match_operators[$match] : $match_operators['contains']).')';
     $args[] = $string;
+	$args[] = $string;
   }
   elseif ($ids) {
     $where[] = 'n.uid IN ('. db_placeholders($ids) .')';
     $args = array_merge($args, $ids);
   }
