QUERY PLAN
Sort (cost=139.68..139.73 rows=18 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..139.31 rows=18 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4444,4241,3915,4271,4312,4360,4035,4168,4223,3645,3738,3709,3783,4026,3998,3844}'::integer[])))