dbcount, er2 = dbmap.selectint("select count(*) n (select av.id table av left join table2 dt on dt.`app_id` = av.`app_id` left join table3 on a.`id` = av.`app_id` dt.`user_id` in (?) or a.`org_id` in (?) group av.id limit ? offset ?) tmp", user_id, org_ids, limit, offset) user_id = 1000
org_ids = 13444,12444,10333
limit = 25
offset = 0
any idea why returns no error or results in go when run directly on database returns 1 result? there no errors either.
Comments
Post a Comment