QUERY PLAN
Sort (cost=125.86..125.89 rows=14 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..125.59 rows=14 width=227)
Filter: ((status = 2) AND (sales_contract_id = ANY ('{4486,4494,4480,1186,2865,4467,4476,4462,4479,4457,4478}'::integer[])))