QUERY PLAN
Sort (cost=68.39..68.40 rows=5 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..68.33 rows=5 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{3914,3789,4024,4132}'::integer[])))