$xbl = $this->registry->db->query_first("SELECT `score` FROM ". TABLE_PREFIX ."gxboxlive WHERE `userid` = '". $this->post['userid'] ."' LIMIT 1");$score = $xbl['score']; // $score contains the value =)