QUERY PLAN
Sort (cost=103.68..103.68 rows=3 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..103.65 rows=3 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4443,4450,4446}'::integer[])))