gustafn
committed
on 19 Sep 07
make sql query look more sane