Query fix

This commit is contained in:
CHIEFSOFT\ameye
2023-06-26 08:57:42 -04:00
parent e3f0931296
commit 008ec7cd0c
+1 -1
View File
@@ -286,7 +286,7 @@ long WrenchUserJobsInterestList(CVars in, CVars &out) {
" LEFT JOIN members mm ON mm.id = mo.member_id "
" WHERE m.status = 1 AND m.client_id=0 "
" AND m.expire IS NOT NULL AND m.expire> now() "
" AND m.member_id = %lu ORDER BY mo.added DESC LIMIT %lu OFFSET %lu",member_id, limit, offset);
" AND mo.member_id = %lu ORDER BY mo.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);