Making bound query static