prepare("SELECT setting_id FROM user_settings WHERE user_id=? AND key=?"); $prep->execute(array($user->UserId,$settingName)); $settingId=$prep->FetchColumn();*/ return new UserSetting($user, $settingName); } }