Когда удаляеш темы выдаёт вот это, хотя тема удаляется:
Could not get poster id information
DEBUG MODE
SQL 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 ') GROUP BY poster_id' at line 3
SELECT poster_id, COUNT(post_id) AS posts FROM phpbb_posts WHERE topic_id IN () GROUP BY poster_id
SQL 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 ')' at line 3
SELECT post_id FROM *****_posts WHERE topic_id IN ()
Line : 334
File : modcp.php
VVVas
да как показать я соображу, в каком файле, как этот запрос выглядит? И почему эта ошибка только один раз повторилась, а теперь все работает? Могла ли эта проблемма быть на сервере, а не у меня в форуме?
}
$sql = "SELECT post_id
FROM " . POSTS_TABLE . "
WHERE topic_id IN ($topic_id_sql)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get post id information', '', __LINE__, __FILE__, $sql);
}