*** contrib/mod_sql.c	Wed Aug 22 12:09:36 2001
--- contrib/mod_sql.c	Wed Aug 22 12:09:22 2001
***************
*** 1056,1062 ****
  
    where = sql_where(cmd->tmp_pool, 2, usrwhere, cmap.where );
  
!   query = pstrcat(cmd->tmp_pool, query, where, " LIMIT 1", NULL);
  
    mr = modsql_select(cmd, query);
  
--- 1056,1062 ----
  
    where = sql_where(cmd->tmp_pool, 2, usrwhere, cmap.where );
  
!   query = pstrcat(cmd->tmp_pool, query, where, NULL);
  
    mr = modsql_select(cmd, query);
  
***************
*** 1143,1149 ****
      where = sql_where(cmd->tmp_pool, 2, grpwhere, cmap.groupwhere);
  
      query = pstrcat(cmd->tmp_pool, "select ", cmap.grpfield, " from ",
!                     cmap.grptable, where, " limit 1", NULL);
  
      mr = modsql_select(cmd, query);
  
--- 1143,1149 ----
      where = sql_where(cmd->tmp_pool, 2, grpwhere, cmap.groupwhere);
  
      query = pstrcat(cmd->tmp_pool, "select ", cmap.grpfield, " from ",
!                     cmap.grptable, where, NULL);
  
      mr = modsql_select(cmd, query);
  
