QUERY PLAN
Sort (cost=27.38..27.43 rows=19 width=56)
Sort Key: id
-> Seq Scan on tbl_erp_advance_payment_ticket_stop_verify_rels (cost=0.00..26.98 rows=19 width=56)
Filter: ((status <> 0) AND (erp_advance_payment_ticket_id = ANY ('{3,2,4,1}'::integer[])))