QUERY PLAN
Sort (cost=70.93..70.95 rows=6 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..70.86 rows=6 width=219)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4109,4131,4112,4130,4111}'::integer[])))