QUERY PLAN
Sort (cost=136.91..136.95 rows=17 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..136.56 rows=17 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4486,4493,4494,4495,4480,4481,4433,4446,4453,4467,4476,4462,4479,4457,4478}'::integer[])))