This commit is contained in:
CHIEFSOFT\ameye
2023-10-30 18:26:44 -04:00
parent 6c55a096b0
commit 9a8f67e17e
+4 -2
View File
@@ -586,8 +586,10 @@ Indexes:
*/
res = pgsql_query(" SELECT f.*, m.firstname, m.lastname FROM family_transfer f LEFT JOIN members m ON m.id = f.recipient WHERE member_id = %lu AND status IN ( 1 ) "
" ORDER BY added DESC LIMIT %lu OFFSET %lu", member_id, limit, offset);
res = pgsql_query(" SELECT f.*, m.firstname, m.lastname FROM family_transfer f "
" LEFT JOIN members m ON m.id = f.recipient "
" WHERE member_id = %lu AND f.status IN ( 1 ) "
" ORDER BY added DESC LIMIT %lu OFFSET %lu", member_id, limit, offset);
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);