fixed bd quary