QUERY PLAN
Sort (cost=61.84..61.85 rows=1 width=249)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..61.83 rows=1 width=249)
Filter: ((status = 2) AND (sales_contract_id = 4083))