Error
Database query error
Query:
SELECT `Blogs`. * , `Profiles`.`Nickname` FROM `Blogs` LEFT JOIN `Profiles` ON `Blogs`.`OwnerID` = `Profiles`.`ID` WHERE `Blogs`.`OwnerID` = LIMIT 1
Mysql error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 5
Found error in file /home/friendsh/public_html/inc/classes/BxDolBlogs.php
at line 821. Called db_arr function
with erroneous argument #0

Debug backtrace:
Array
(
    [1] => Array
        (
            [file] => /home/friendsh/public_html/inc/db.inc.php
            [line] => 113
            [function] => db_res
            [args] => Array
                (
                    [0] => 
			SELECT `Blogs`. * , `Profiles`.`Nickname` 
			FROM `Blogs` 
			LEFT JOIN `Profiles` ON `Blogs`.`OwnerID` = `Profiles`.`ID`
			WHERE `Blogs`.`OwnerID` = 
			LIMIT 1
		
                    [1] => 1
                )

        )

    [2] => Array
        (
            [file] => /home/friendsh/public_html/inc/classes/BxDolBlogs.php
            [line] => 821
            [function] => db_arr
            [args] => Array
                (
                    [0] => 
			SELECT `Blogs`. * , `Profiles`.`Nickname` 
			FROM `Blogs` 
			LEFT JOIN `Profiles` ON `Blogs`.`OwnerID` = `Profiles`.`ID`
			WHERE `Blogs`.`OwnerID` = 
			LIMIT 1
		
                )

        )

    [3] => Array
        (
            [file] => /home/friendsh/public_html/blogs.php
            [line] => 112
            [function] => GenPostPage
            [class] => BxDolBlogs
            [type] => ->
            [object] => BxDolBlogs Object
                (
                    [sRowSpacerDiv] => 
                    [iEventsPerPage] => 
                    [iIconSize] => 
                    [iThumbSize] => 
                    [iImgSize] => 
                    [bAdminMode] => 
                    [sPicNotAvail] => 
                    [sSpacerPath] => 
                    [aBlogConf] => Array
                        (
                            [visitorID] => 0
                            [ownerID] => 1
                            [isOwner] => 
                            [editAllowed] => 
                            [period] => 1
                            [isFriend] => 
                            [loggedMember] => 
                            [commentMaxLenght] => 250
                            [categoryCaptionMaxLenght] => 150
                            [blogCaptionMaxLenght] => 150
                            [blogTextMaxLenght] => 2000
                            [breadCrampDivider] => /
                        )

                    [iLastPostedPostID] => -1
                )

            [args] => Array
                (
                )

        )

    [4] => Array
        (
            [file] => /home/friendsh/public_html/blogs.php
            [line] => 40
            [function] => PageCompBlogs
            [args] => Array
                (
                )

        )

)