QUERY PLAN
Sort (cost=30.10..30.18 rows=29 width=56)
Sort Key: id
-> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels (cost=0.00..29.40 rows=29 width=56)
Filter: ((status <> 0) AND (erp_cash_cost_ticket_id = ANY ('{6,5,4,3,2,1}'::integer[])))