QUERY PLAN
Sort (cost=131.37..131.41 rows=15 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..131.08 rows=15 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4417,4390,4359,4386,4373,4377,4360,4366,4385,4394,4400,4388,4399}'::integer[])))