*** userpoints.module.orig      Tue Jun  5 02:49:10 2007
--- userpoints.module   Tue Jun  5 02:41:33 2007
***************
*** 573,580 ****

  function userpoints_list_users() {
    $sql = "SELECT p.uid, u.name, p.points
!     FROM {userpoints} p INNER JOIN {users} u USING (uid)
!     GROUP BY p.uid";
    $sql_cnt = "SELECT COUNT(DISTINCT(uid)) FROM {userpoints}";
    $header = array(
      array('data' => t('User'), 'field' => 'u.name'),
--- 573,579 ----

  function userpoints_list_users() {
    $sql = "SELECT p.uid, u.name, p.points
!     FROM {userpoints} p INNER JOIN {users} u USING (uid)";
    $sql_cnt = "SELECT COUNT(DISTINCT(uid)) FROM {userpoints}";
    $header = array(
      array('data' => t('User'), 'field' => 'u.name'),
***************
*** 626,632 ****
              $title = t('Highest Users');
              $result = db_query_range('SELECT p.uid, u.name, p.points
                FROM {userpoints} p INNER JOIN {users} u USING (uid)
-               GROUP BY p.uid
                ORDER BY p.points DESC', 0, $num);
              while ($data = db_fetch_object($result)) {
                $rows[] =
--- 625,630 ----
