BUG: replaced deprecated extendedSQL call with DataList->where