userid = $user_id; } public function i($table) { return DB::query("SELECT * FROM users WHERE id=:id", array(':id'=>$this->userid))[0][$table]; } }