foreach( $blog->content as $k=>$v ){
$comments=sql_query("SELECT * FROM comments WHERE blog='".escape($v['id'])."'");
$article_categories=sql_query("SELECT * FROM cms_multiple_select CMS
INNER JOIN categories C ON C.id=CMS.value
WHERE
item='".escape($v['id'])."' AND
section='blog'
GROUP BY category
");
if( !$blog->article ){
$v['copy']=truncate(strip_tags($v['copy']),200);
}
?>
Comments
if( count($comments) ){ ?>