fix q
This commit is contained in:
@@ -41,7 +41,7 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
|
||||
res = pgsql_query("SELECT id FROM members_jobs_offer WHERE member_id = %lu AND status=1 AND expire > now() ", in["member_id"].Long());
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
res = pgsql_query("SELECT id AS job_id,jo.expire, j.* FROM members_jobs_offer jo LEFT JOIN members_jobs j ON ON j.id = jo.job_id "
|
||||
res = pgsql_query("SELECT j.id AS job_id,jo.expire, j.* FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
||||
" WHERE jo.expire > now() AND jo.status = 1 AND jo.member_id = %lu AND jo.status=1 "
|
||||
" ORDER BY jo.id DESC LIMIT %lu OFFSET %lu", in["member_id"].Long(), limit, offset);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user