QUERY PLAN
Sort (cost=104.97..105.01 rows=17 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..104.62 rows=17 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4094,4046,4044,4300,4129,2635,3761,4047,3336,4048,4008,2513,2840,2277,4443}'::integer[])))