Error
Database query error
Query:
SELECT `BlogPosts`.*, COUNT(`cmt_id`) AS `CountComments`, `BlogCategories`.`OwnerID`, `BlogCategories`.`CategoryName`, `BlogCategories`.`CategoryUri`, UNIX_TIMESTAMP( `BlogPosts`.`PostDate` ) AS `PostDate_UTS` FROM `BlogPosts` LEFT JOIN `CmtsBlogPosts` AS `tc` ON `BlogPosts`.`PostID` = `tc`.`cmt_object_id` INNER JOIN `BlogCategories` ON `BlogCategories`.`CategoryID`=`BlogPosts`.`CategoryID` WHERE `BlogCategories`.`OwnerId` = 835 AND `BlogPosts`.`CategoryID` = 274 AND `PostStatus`='approval' GROUP BY `BlogPosts`.`PostID` ORDER BY `PostDate` DESC, `CountComments` DESC LIMIT 0, 5
Found error in file /home/youmobil/public_html/inc/classes/BxDolBlogs.php
at line 892. Called db_res function with erroneous argument #0

Debug backtrace:
Array
(
    [1] => Array
        (
            [file] => /home/youmobil/public_html/inc/classes/BxDolBlogs.php
            [line] => 892
            [function] => db_res
            [args] => Array
                (
                    [0] => 
			SELECT `BlogPosts`.*, COUNT(`cmt_id`) AS `CountComments`, `BlogCategories`.`OwnerID`, `BlogCategories`.`CategoryName`, `BlogCategories`.`CategoryUri`,
			UNIX_TIMESTAMP( `BlogPosts`.`PostDate` ) AS `PostDate_UTS`
			FROM `BlogPosts`
			LEFT JOIN `CmtsBlogPosts` AS `tc` ON `BlogPosts`.`PostID` = `tc`.`cmt_object_id`
			INNER JOIN `BlogCategories` ON `BlogCategories`.`CategoryID`=`BlogPosts`.`CategoryID`
			WHERE `BlogCategories`.`OwnerId` = 835
			AND `BlogPosts`.`CategoryID` = 274
			AND `PostStatus`='approval'
			GROUP BY `BlogPosts`.`PostID`
			ORDER BY `PostDate` DESC, `CountComments` DESC
			LIMIT 0, 5
		
                )

        )

    [2] => Array
        (
            [file] => /home/youmobil/public_html/blogs.php
            [line] => 31
            [function] => GenMemberBlog
            [class] => BxDolBlogs
            [object] => BxDolBlogs Object
                (
                    [iIconSize] => 50
                    [iThumbSize] => 200
                    [iBigThumbSize] => 350
                    [iImgSize] => 800
                    [bAdminMode] => 
                    [sPicNotAvail] => 
                    [aBlogConf] => Array
                        (
                            [visitorID] => 0
                            [ownerID] => 0
                            [isOwner] => 1
                            [loggedMember] => 
                            [categoryCaptionMaxLenght] => 150
                            [blogCaptionMaxLenght] => 150
                        )

                    [iLastPostedPostID] => -1
                    [iPerPageElements] => 5
                    [iTopTagsCnt] => 20
                    [oCmtsView] => 
                    [sPins] => 
                    [_isPermalinkEnabled] => 1
                )

            [type] => ->
            [args] => Array
                (
                )

        )

    [3] => Array
        (
            [file] => /home/youmobil/public_html/blogs.php
            [line] => 15
            [function] => PageCompBlogs
            [args] => Array
                (
                )

        )

)
Called script: /blogs.php
Request parameters:
Array
(
    [action] => show_member_blog
    [ownerName] => Josephws
    [categoryUri] => CES-2012
)