Index: openacs-4/packages/xowiki/tcl/xowiki-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/Attic/xowiki-portlet-procs.tcl,v diff -u -r1.55 -r1.56 --- openacs-4/packages/xowiki/tcl/xowiki-portlet-procs.tcl 18 May 2007 09:07:44 -0000 1.55 +++ openacs-4/packages/xowiki/tcl/xowiki-portlet-procs.tcl 25 May 2007 10:13:30 -0000 1.56 @@ -982,7 +982,7 @@ if {$summary} { set count [db_string [my qn presence_count_users] \ - "select count(distinct user_id) from xowiki_last_visited $where_clause"] + "select count(distinct user_id) from xowiki_last_visited WHERE $where_clause"] } else { set values [db_list_of_lists [my qn get_users] \ [::xo::db::sql select \