QUERY PLAN
Sort (cost=117.51..117.53 rows=9 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..117.36 rows=9 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4486,4417,4422,4430,4426,4394,4414,4388}'::integer[])))