SELECT PageID FROM mainmenu where MainMenuID=0;No database selected