Added parameter to SelectQuery method