QUERY PLAN
Sort (cost=91.09..91.12 rows=11 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..90.90 rows=11 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4492,4491,4496,4497,4476,4494,4478,4479,4480,4486}'::integer[])))