[eluser]jedd[/eluser]
[quote author="slowgary" date="1246562183"]Oh...I see it. Your model is assigning the query results to $query but not returning any of it.[/quote]
[url="http://ellislab.com/forums/viewreply/603760/"]I wish I'd noticed that.[/url]
Quote:Get rid of the variable and just return it directly.
For the sake of completeness, you'd probably want to check that you had something to return - say with num_rows - and perhaps return FALSE if you did not. I know you can check this at the other end - in the controller or even pass it straight to the view and let it deal with it - but I think it's more elegant to do this in the model, and always pass back consistently formatted data.
By consistently-formatted, I mean never passing NULL'd variables around unintentionally.