title: PHP Notice: Array to string conversion in array list
body: <p>I have this function for show tags list :</p>
  
  <pre><code>$DB_QUERY = Access::FETCH("SELECT name, " . NEWS_TAGS . ".id,tags_id,content_id  FROM " . NEWS_TAGS . " JOIN " . NEWS_POSTS_TAGS . " ON 
     " . NEWS_TAGS . ".id = " . NEWS_POSTS_TAGS . ".tags_id WHERE " . NEWS_POSTS_TAGS . ".content_id = ? AND " . NEWS_TAGS . ".type = ? ORDER BY " . NEWS_TAGS . ".name ASC LIMIT 8 ", filter_var($id, FILTER_VALIDATE_INT) , $type);
  $ret = array();
  
  foreach($DB_QUERY as $row)
      {
      $ret[] = $row['name'];
      }
  
  $tags = '&lt;li class="label"&gt;&lt;a href="#"&gt;&lt;i class="fa fa-tag"&gt;&lt;/i&gt;' . $ret . '&lt;/a&gt;&lt;/li&gt;';
  
  echo $tags;
  </code></pre>
  
  <p>But i see this error :</p>
  
  <blockquote>
    <p>Notice: Array to string conversion in C:\xampp\htdocs\frontcms\class\functions.php on line 449</p>
  </blockquote>
  
  <p>EDIT:</p>
  
  <p>I print result <code>print_r($DB_QUERY)</code> using PHP <code>print_r</code>:</p>
  
  <pre><code>Array(
      [0] =&gt; Array(
          [name] =&gt; 321[id] =&gt; 393[tags_id] =&gt; 393[content_id] =&gt; 244
      ) [1] =&gt; Array(
          [name] =&gt; tagname1[id] =&gt; 395[tags_id] =&gt; 395[content_id] =&gt; 244
      ) [2] =&gt; Array(
          [name] =&gt; tagname2[id] =&gt; 394[tags_id] =&gt; 394[content_id] =&gt; 244
      ) [3] =&gt; Array(
          [name] =&gt; tagname3[id] =&gt; 396[tags_id] =&gt; 396[content_id] =&gt; 244
      )
  )
  </code></pre>
  
  <p>how do fix this ?!</p>