Error: 1064 - 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 'DESC LIMIT 0,1' at line 1
по порядку.. .
строка 1065 = $this->returnLastPost();
функция
public function returnLastPost( $topicData=false )
if ( $this->request['view'] )
{
/* Determine what we can see */
$_approved = $this->registry->class_forums->fetchTopicHiddenQuery( array( 'visible' ), '' );
/* Can we deal with hidden posts? */
if ( $this->registry->class_forums->canQueuePosts( $topicData['forum_id'] ) )
{
if ( $permissionData['TopicSoftDeleteSee'] )
{
/* See queued and soft deleted */
$_approved = $this->registry->class_forums->fetchTopicHiddenQuery( array( 'approved', 'sdeleted', 'hidden' ), '' );
}
else
{
/* Otherwise, see queued and approved */
$_approved = $this->registry->class_forums->fetchTopicHiddenQuery( array( 'visible', 'hidden' ), '' );
}
}
else
{
/* We cannot see hidden posts */
if ( $permissionData['TopicSoftDeleteSee'] )
{
/* See queued and soft deleted */
$_approved = $this->registry->class_forums->fetchTopicHiddenQuery( array( 'approved', 'sdeleted' ), '' );
}
}
if ( $this->request['view'] == 'getnextunread' )
{
$tid = $this->registry->getClass('topics')->getNextUnreadTopicId();
if ( $tid )
{
$topic = $this->registry->getClass('topics')->getTopicById( $tid );
Вылет Sql ошибки, при переходе к последнему посту!
в Корзина
Опубликовано · Изменено пользователем promo
Добрый день, столкнулся с такими ошибками