danw
committed
on 28 Apr 01
fixed problem with initalizing a_order and added missing as to select query