Fixed patient search query