QUERY PLAN
Sort (cost=112.02..112.05 rows=9 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..111.88 rows=9 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{1186,4457,4467,4476,4462,4481}'::integer[])))