QUERY PLAN
Sort (cost=63.29..63.30 rows=2 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..63.28 rows=2 width=219)
Filter: ((sales_contract_id = ANY ('{1558,4140}'::integer[])) AND (status = 2))