QUERY PLAN
Sort (cost=125.83..125.87 rows=13 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..125.59 rows=13 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4422,4430,4424,4426,4444,4433,4408,4393,4396,4414,4400}'::integer[])))