db()->queryRow('SELECT * FROM cuentas WHERE id = :id', array( 'id' => $id )); if ($cuenta) { $this->id = $cuenta->id; $this->cuenta = $cuenta->nombre; $this->role = $cuenta->role; return true; } } return false; } }