QUERY PLAN
Sort (cost=134.14..134.18 rows=16 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..133.82 rows=16 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4417,4390,4386,4408,4373,4377,4393,4385,4394,4396,4414,4400,4388,4399}'::integer[])))