Fixed BD-13: WHERE filter combined with COUNT doesn't work