From acaecd9da54427dc3c73d9c0a397b47677aee377 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 17 Jun 2023 12:31:35 -0400 Subject: [PATCH] member is --- wrenchboard/src/shared_tool/reco_egine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index 32433b56..32fd9b8a 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -323,7 +323,7 @@ long RecoReferAFreind(int itm_count, CVars in, CVars &out ){ int ic = itm_count; long member_id = REQ_LONG(in, "member_id", 1, -1); res = pgsql_query(" SELECT id FROm members " - " WHERE member_id = %lu ",member_id); + " WHERE id = %lu ",member_id); if (res != NULL && pgsql_num_rows(res) > 0) { snprintf(vname, sizeof (vname), "title_%05d", ic);