QUERY PLAN
Nested Loop (cost=0.00..2.30 rows=1 width=80)
Join Filter: (r.erp_other_income_ticket_id = t.id)
-> Seq Scan on tbl_erp_other_income_ticket_purchase_contract_settles r (cost=0.00..1.04 rows=1 width=80)
Filter: (erp_other_payment_ticket_id = 35)
-> Seq Scan on tbl_erp_other_income_tickets t (cost=0.00..1.24 rows=2 width=4)
Filter: (status = ANY ('{2,5}'::integer[]))