$teampage_position = $this->db->sql_fetchfield('teampage_position');

if ($teampage_position === false) // same as $row === false;