select d.InsertUserID as `FirstUserID`, d.DateInserted as `FirstDate`, iu.Name as `FirstName`, iup.Name as `FirstPhoto`, d.Body as `Body`, d.Format as `Format`, d.DateLastComment as `LastDate`, d.LastCommentUserID as `LastUserID`, lcu.Name as `LastName`, concat_ws(' → ', pc.Name, ca.Name) as `Category`, ca.UrlCode as `CategoryUrlCode`, d.*, 0 as `WatchUserID`, now() as `DateLastViewed`, 0 as `Dismissed`, 0 as `Bookmarked`, 0 as `CountCommentWatch`, d.Announce as `IsAnnounce`
from GDN_Discussion d
left join GDN_User iu on d.InsertUserID = iu.UserID
left join GDN_Photo iup on iu.PhotoID = iup.PhotoID
left join GDN_User lcu on d.LastCommentUserID = lcu.UserID
left join GDN_Category ca on d.CategoryID = ca.CategoryID
left join GDN_Category pc on ca.ParentCategoryID = pc.CategoryID
where d.CategoryID in (:dCategoryID, :dCategoryID0, :dCategoryID1, :dCategoryID2, :dCategoryID3)
and d.Announce <> :dAnnounce
order by d.DateLastComment desc
limit 60, 10
227:
228: if (!is_object($PDOStatement)) {
229: trigger_error(ErrorMessage('PDO Statement failed to prepare', $this->ClassName, 'Query', $this->GetPDOErrorMessage($this->Connection()->errorInfo())), E_USER_ERROR);
230: } else if ($PDOStatement->execute($InputParameters) === FALSE) {
231: trigger_error(ErrorMessage($this->GetPDOErrorMessage($PDOStatement->errorInfo()), $this->ClassName, 'Query', $Sql), E_USER_ERROR);
232: }
233: } else {
234: $PDOStatement = $this->Connection()->query($Sql);
235: }
/homez.478/dardos/www/foro/library/database/class.database.phpPHP::Gdn_ErrorHandler();
[/homez.478/dardos/www/foro/library/database/class.database.php:231] PHP::trigger_error();
[/homez.478/dardos/www/foro/library/database/class.sqldriver.php:1553] Gdn_Database->Query();
[/homez.478/dardos/www/foro/library/database/class.sqldriver.php:632] Gdn_SQLDriver->Query();
[/homez.478/dardos/www/foro/applications/vanilla/models/class.discussionmodel.php:105] Gdn_SQLDriver->Get();
[/homez.478/dardos/www/foro/applications/vanilla/controllers/class.discussionscontroller.php:54] DiscussionModel->Get();
[/homez.478/dardos/www/foro/library/core/class.dispatcher.php:267] DiscussionsController->Index();
[/homez.478/dardos/www/foro/index.php:40] Gdn_Dispatcher->Dispatch();
[Sql] 'select d.InsertUserID as `FirstUserID`, d.DateInserted as `FirstDate`, iu.Name as `FirstName`, iup.Name as `FirstPhoto`, d.Body as `Body`, d.Format as `Format`, d.DateLastComment as `LastDate`, d.LastCommentUserID as `LastUserID`, lcu.Name as `LastName`, concat_ws(\' → \', pc.Name, ca.Name) as `Category`, ca.UrlCode as `CategoryUrlCode`, d.*, 0 as `WatchUserID`, now() as `DateLastViewed`, 0 as `Dismissed`, 0 as `Bookmarked`, 0 as `CountCommentWatch`, d.Announce as `IsAnnounce` from GDN_Discussion d left join GDN_User iu on d.InsertUserID = iu.UserID left join GDN_Photo iup on iu.PhotoID = iup.PhotoID left join GDN_User lcu on d.LastCommentUserID = lcu.UserID left join GDN_Category ca on d.CategoryID = ca.CategoryID left join GDN_Category pc on ca.ParentCategoryID = pc.CategoryID where d.CategoryID in (:dCategoryID, :dCategoryID0, :dCategoryID1, :dCategoryID2, :dCategoryID3) and d.Announce <> :dAnnounce order by d.DateLastComment desc limit 60, 10'
[InputParameters] array ( ':dCategoryID' => '1', ':dCategoryID0' => '2', ':dCategoryID1' => '3', ':dCategoryID2' => '4', ':dCategoryID3' => '-1', ':dAnnounce' => '1', )
[Event] ''
[PDOStatement] array ( 'queryString' => 'select d.InsertUserID as `FirstUserID`, d.DateInserted as `FirstDate`, iu.Name as `FirstName`, iup.Name as `FirstPhoto`, d.Body as `Body`, d.Format as `Format`, d.DateLastComment as `LastDate`, d.LastCommentUserID as `LastUserID`, lcu.Name as `LastName`, concat_ws(\' → \', pc.Name, ca.Name) as `Category`, ca.UrlCode as `CategoryUrlCode`, d.*, 0 as `WatchUserID`, now() as `DateLastViewed`, 0 as `Dismissed`, 0 as `Bookmarked`, 0 as `CountCommentWatch`, d.Announce as `IsAnnounce` from GDN_Discussion d left join GDN_User iu on d.InsertUserID = iu.UserID left join GDN_Photo iup on iu.PhotoID = iup.PhotoID left join GDN_User lcu on d.LastCommentUserID = lcu.UserID left join GDN_Category ca on d.CategoryID = ca.CategoryID left join GDN_Category pc on ca.ParentCategoryID = pc.CategoryID where d.CategoryID in (:dCategoryID, :dCategoryID0, :dCategoryID1, :dCategoryID2, :dCategoryID3) and d.Announce <> :dAnnounce order by d.DateLastComment desc limit 60, 10', )
If you are a user of this website, you can report this message to a website administrator.
If you are an administrator of this website, you can get help at the Vanilla Community Forums.