QUERY PLAN
Sort (cost=150.80..150.85 rows=23 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..150.27 rows=23 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4480,4481,4484,4424,4444,4433,4408,4393,4396,4400,4443,4450,4446,4453,4467,4476,4462,4479,4478,4457}'::integer[])))