QUERY PLAN
Sort (cost=139.68..139.73 rows=18 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..139.31 rows=18 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4486,4494,4480,4433,4257,3250,3247,3249,3300,3327,3348,4388,4453,4476,4479,4478}'::integer[])))