$inDB = cmsDatabase::getInstance(); $inUser = cmsUser::getInstance(); $user_id = $inUser->id; $inDB->get_field('cms_blog_authors', 'user_id='.$user_id, 'blog_id');
$user_blog_id = $inDB->get_field('cms_blog_authors', 'user_id='.$user_id, 'blog_id');