i have problem in following query.
this query working fine in seperated,
i add two array value.
totalcount display first value.
what is the problem in my query.
anybody plx help me
$sql="SELECT count( DISTINCT friendoffriends_id ) AS count from mycommunity WHERE personal_id =:personal_id and blocked=0 "; $query = $db->prepare($sql); $query->execute(array('personal_id' => $this->personal->getId())); $this->communityunblock = $query->fetchAll(); $this->totalunblockcount =$this->communityunblock + $this->friendsunblock; var_dump($this->totalunblockcount);