QUERY PLAN
Sort (cost=67.10..67.10 rows=1 width=223)
Sort Key: id DESC
-> Seq Scan on tbl_erp_collect_tickets (cost=0.00..67.09 rows=1 width=223)
Filter: ((status = 2) AND (sales_contract_id = 4253))