torbenb
committed
on 08 Sep 08
updating query to handle more cases