diff --git a/wrenchboard/src/shared_tool/family_acc.cc b/wrenchboard/src/shared_tool/family_acc.cc index ac213a56..2da68ae5 100644 --- a/wrenchboard/src/shared_tool/family_acc.cc +++ b/wrenchboard/src/shared_tool/family_acc.cc @@ -253,7 +253,7 @@ long WrenchSuggestWaitingList(CVars in, CVars &out){ // this is the parent now " LEFT JOIN members_family mf ON mf.uid::text = sg.family_uid " " WHERE sg.family_uid::text IN (SELECT uid::text FROM members_family " " WHERE member_id = %lu ) " - " AND sg.status IN ( 1,2,3,4,5) " + " AND sg.status IN ( 0,1,2,3,4,5) " " ORDER BY sg.created DESC LIMIT %lu OFFSET %lu", member_id, limit, offset); if (res != NULL && pgsql_num_rows(res) > 0) {