QUERY PLAN
Sort (cost=74.49..74.50 rows=5 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..74.43 rows=5 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4426,4433,4257,4388}'::integer[])))