QUERY PLAN
Sort (cost=68.95..68.95 rows=1 width=227)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..68.94 rows=1 width=227)
Filter: ((status = 2) AND (sales_contract_id = 4486))