Tim Irwin fixes the query problem, do not serialize the attributes you want to access in the controller and model code.