QUERY PLAN
Sort (cost=917.66..917.79 rows=50 width=25)
Sort Key: id
-> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels (cost=0.00..916.25 rows=50 width=25)
Filter: ((status <> 0) AND (erp_cash_cost_ticket_id = ANY ('{8489,8488,8487,8486,8485,8484,8482,8480,8474,8435,8421,8420,8419,8418,8363,8367,8366,8365,8364,8362}'::integer[])))