PHP warning

Trying to access array offset on value of type bool

/home3/palmoild/public_html/wfitv/protected/modules/user/models/Country.php(111)

099         ->join('channels ch', 'cn.id=ch.country_id')
100         ->order('cn.country')
101         ->queryAll();
102         return $country;
103     }
104     public function getCountry($id)
105     {
106         $country = Yii::app()->db->createCommand()
107         ->selectDistinct('country')
108            ->from('country')
109         ->where('id=:id', array(':id'=>$id))
110         ->queryRow();
111         return $country['country'];
112     }
113     
114 }

Stack Trace

#0
+
 /home3/palmoild/public_html/wfitv/protected/modules/user/controllers/ChannelsController.php(633): Country->getCountry("popular")
628         $model = new Channels;
629         $cnt = $_GET['country'];
630         $cnttemp = explode('_',$cnt);
631         $country_id = $cnttemp[sizeof($cnttemp)-1];
632         $cntmodel = new Country;
633         $countryName = $cntmodel->getCountry($country_id);
634         
635         $this->pageTitle = 'wfiTV.com - Watch Free Internet Television from '.$countryName;
636         $this->pageDescription = 'Free online TV channels from '.$countryName;
637         $this->pageKeywords = $countryName.', internet television '.$countryName.', tv online '.$countryName.',on demand, vod,live tv '.$countryName.', free internet tv '.$countryName.', streaming tv '.$countryName.', watch tv online '.$countryName.', watch tv, tv, tv live, tv internet, free online tv, internet television, free tv online, online television, broadband tv, free tv, online tv, wfitv, webtv, web tv, satellite, cable, satellite tv, player, media, live tv, live television, television, stream, streaming, webstream, guide, broadcast, broadcasting, webcasting, webcast, webcasts ';
638         
#13
+
 /home3/palmoild/public_html/wfitv/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-29 05:26:26 Apache Yii Framework/1.1.10