QUERY PLAN
Sort (cost=65.83..65.84 rows=3 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..65.81 rows=3 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4071,1558,4144}'::integer[])))