QUERY PLAN
Sort (cost=1.04..1.05 rows=1 width=80)
Sort Key: id
-> Seq Scan on tbl_erp_cash_cost_ticket_sales_contract_settles (cost=0.00..1.03 rows=1 width=80)
Filter: (erp_cash_cost_ticket_id = ANY ('{8489,8488,8487,8486,8485,8484,8483,8482,8480,8479,8474,8472,8471,8470,8469,8467,8466,8465,8461,8460}'::integer[]))