QUERY PLAN
Sort (cost=136.97..137.01 rows=19 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..136.56 rows=19 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{1756,2472,2225,1842,1843,2141,1734,1872,1930,1934,1946,2542,1702,2340,2349}'::integer[])))