QUERY PLAN
Sort (cost=91.09..91.12 rows=11 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..90.90 rows=11 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4394,4386,4385,4377,4417,4388,4414,4422,4426,4430}'::integer[])))