How are you testing the query in the controller if you just create a different query here?
Call the query from the controller, not here.