QUERY PLAN
Sort (cost=109.22..109.23 rows=6 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..109.14 rows=6 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4481,4450,4453,4462,4457}'::integer[])))