QUERY PLAN
Sort (cost=123.04..123.07 rows=11 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..122.85 rows=11 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{2749,3193,2947,3009,3022,2836,2948,2740,2823,3161}'::integer[])))