Error
Database query error
Query:
SELECT DISTINCT
`BlogPosts`.`PostID`,
`BlogPosts`.`CategoryID`,
`BlogCategories`.`OwnerID`,
`BlogPosts`.`PostText`,
UNIX_TIMESTAMP( `BlogPosts`.`PostDate` ) AS `PostDate_f`,
`BlogPosts`.`PostCaption`,
`BlogPosts`.`PostUri`,
`BlogPosts`.`PostPhoto`,
`BlogCategories`.`CategoryName`,
`BlogCategories`.`CategoryUri`,
`Profiles`.`ID` AS `ProfID`,
`Profiles`.`NickName` AS `NickName`,
COUNT( `tc`.`cmt_id` ) AS `CommentsNum`
FROM `BlogCategories`
LEFT JOIN `BlogPosts`
ON `BlogPosts`.`CategoryID` = `BlogCategories`.`CategoryID`
INNER JOIN `Profiles`
ON `BlogCategories`.`OwnerID` = `Profiles`.`ID`
LEFT JOIN `CmtsBlogPosts` AS `tc` ON
`BlogPosts`.`PostID` = `tc`.`cmt_object_id`
WHERE
1 AND
`BlogPosts`.`PostReadPermission` = 'public' AND
`BlogPosts`.`PostStatus` = 'approval'
GROUP BY `BlogPosts`.`PostID`
ORDER BY `BlogPosts`.`PostDate` DESC
LIMIT 3
Found error in file
/home/youmobil/public_html/inc/classes/BxDolBlogs.php
at line
2291. Called
db_res function
with erroneous argument #
0
Debug backtrace:Array
(
[1] => Array
(
[file] => /home/youmobil/public_html/inc/classes/BxDolBlogs.php
[line] => 2291
[function] => db_res
[args] => Array
(
[0] =>
SELECT DISTINCT
`BlogPosts`.`PostID`,
`BlogPosts`.`CategoryID`,
`BlogCategories`.`OwnerID`,
`BlogPosts`.`PostText`,
UNIX_TIMESTAMP( `BlogPosts`.`PostDate` ) AS `PostDate_f`,
`BlogPosts`.`PostCaption`,
`BlogPosts`.`PostUri`,
`BlogPosts`.`PostPhoto`,
`BlogCategories`.`CategoryName`,
`BlogCategories`.`CategoryUri`,
`Profiles`.`ID` AS `ProfID`,
`Profiles`.`NickName` AS `NickName`,
COUNT( `tc`.`cmt_id` ) AS `CommentsNum`
FROM `BlogCategories`
LEFT JOIN `BlogPosts`
ON `BlogPosts`.`CategoryID` = `BlogCategories`.`CategoryID`
INNER JOIN `Profiles`
ON `BlogCategories`.`OwnerID` = `Profiles`.`ID`
LEFT JOIN `CmtsBlogPosts` AS `tc` ON
`BlogPosts`.`PostID` = `tc`.`cmt_object_id`
WHERE
1 AND
`BlogPosts`.`PostReadPermission` = 'public' AND
`BlogPosts`.`PostStatus` = 'approval'
GROUP BY `BlogPosts`.`PostID`
ORDER BY `BlogPosts`.`PostDate` DESC
LIMIT 3
)
)
[2] => Array
(
[file] => /home/youmobil/public_html/inc/classes/BxDolBlogs.php
[line] => 287
[function] => GenAnyBlockContent
[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] =>
)
[type] => ->
[args] => Array
(
[0] => latest
[1] => 0
[2] => LIMIT 3
)
)
[3] => Array
(
[file] => /home/youmobil/public_html/blogs.php
[line] => 124
[function] => GenBlogLists
[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
(
[0] => last
)
)
[4] => Array
(
[file] => /home/youmobil/public_html/blogs.php
[line] => 15
[function] => PageCompBlogs
[args] => Array
(
)
)
)
Called script: /blogs.php
Request parameters:Array
(
)