QUERY PLAN
Sort (cost=106.45..106.47 rows=5 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..106.40 rows=5 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4496,4497,4491,4492}'::integer[])))