QUERY PLAN
Sort (cost=61.80..61.80 rows=1 width=250)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..61.79 rows=1 width=250)
Filter: ((status = 2) AND (sales_contract_id = 4075))