MVC-3.2.6 - Fixing Query Function