$userdata = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "userfield WHERE userid=1");echo '<pre>';print_r($userdata);echo '</pre>';echo $userdata['field1']; //and so on