Error
Database query error
Query:
SELECT `Blogs`.`ID` , `Blogs`.`OwnerID` , `Blogs`.`Description` , `Profiles`.`Nickname` , MAX(`PostDate`) AS 'MPD', COUNT(`BlogPosts`.`PostID`) AS 'PostCount' FROM `Blogs` INNER JOIN `BlogCategories` ON `BlogCategories`.`OwnerID` = `Blogs`.`OwnerID` INNER JOIN `Profiles` ON `Profiles`.`ID` = `Blogs`.`OwnerID` INNER JOIN `BlogPosts` ON `BlogPosts`.`CategoryID` = `BlogCategories`.`CategoryID` WHERE `PostStatus`='approval' GROUP BY `Blogs`.`ID` ORDER BY `PostCount` DESC LIMIT 20, 10
Mysql error:
Table 'jawwna.BlogPosts' doesn't exist
Found error in file /home/jawwna/new.jawwna.com/inc/classes/BxDolBlogs.php
at line 262. Called db_res function with erroneous argument #0

Debug backtrace:
Array
(
    [1] => Array
        (
            [file] => /home/jawwna/new.jawwna.com/inc/classes/BxDolBlogs.php
            [line] => 262
            [function] => db_res
            [args] => Array
                (
                    [0] => 
				SELECT `Blogs`.`ID` , `Blogs`.`OwnerID` , `Blogs`.`Description` , `Profiles`.`Nickname` , MAX(`PostDate`) AS 'MPD', COUNT(`BlogPosts`.`PostID`) AS 'PostCount'
				FROM `Blogs` 
				INNER JOIN `BlogCategories` ON `BlogCategories`.`OwnerID` = `Blogs`.`OwnerID` 
				INNER JOIN `Profiles` ON `Profiles`.`ID` = `Blogs`.`OwnerID` 
				INNER JOIN `BlogPosts` ON `BlogPosts`.`CategoryID` = `BlogCategories`.`CategoryID`
				WHERE `PostStatus`='approval'
				GROUP BY `Blogs`.`ID` 
				ORDER BY `PostCount` DESC
				LIMIT 20, 10
			
                )

        )

    [2] => Array
        (
            [file] => /home/jawwna/new.jawwna.com/blogs.php
            [line] => 59
            [function] => GenBlogLists
            [class] => BxDolBlogs
            [type] => ->
            [object] => BxDolBlogs Object
                (
                    [iIconSize] => 45
                    [iThumbSize] => 110
                    [iBigThumbSize] => 340
                    [iImgSize] => 800
                    [bAdminMode] => 
                    [sPicNotAvail] => 
                    [sSpacerPath] => templates/base/images/icons/spacer.gif
                    [aBlogConf] => Array
                        (
                            [visitorID] => 0
                            [ownerID] => 0
                            [isOwner] => 1
                            [loggedMember] => 
                            [categoryCaptionMaxLenght] => 150
                            [blogCaptionMaxLenght] => 150
                        )

                    [iLastPostedPostID] => -1
                    [iPerPageElements] => 10
                    [sCommonCSS] => 
                    [iTopTagsCnt] => 20
                    [oCmtsView] => 
                    [_isPermalinkEnabled] => 1
                )

            [args] => Array
                (
                    [0] => top
                )

        )

    [3] => Array
        (
            [file] => /home/jawwna/new.jawwna.com/blogs.php
            [line] => 42
            [function] => PageCompBlogs
            [args] => Array
                (
                )

        )

)
Called script: /blogs.php
Request parameters:
Array
(
    [action] => top_blogs
    [page] => 3
    [per_page] => 10
)