Fix insert-ent-order-query