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 ('{2988,3529,3665,3713,4026}'::integer[])))