Query fix for home page.