QUERY PLAN
Sort (cost=63.29..63.30 rows=1 width=219)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..63.28 rows=1 width=219)
Filter: ((status = 2) AND (sales_contract_id = 1558))