Protektor
Пользователь
Попробуйте так изменить запрос
PHP:
$new_post = DB()->fetch_rowset('SELECT
p.post_id, p.poster_id, t.topic_title, t.topic_first_post_id, t.topic_id, t.topic_attachment, u.username, u.user_id,
u.avatar_ext_id, u.user_rank, p.forum_id, p.post_time
FROM '.BB_POSTS.' p
LEFT JOIN '.BB_TOPICS.' t ON t.topic_id = p.topic_id
LEFT JOIN '. BB_USERS .' u ON u.user_id = p.poster_id
WHERE t.topic_attachment = 1
ORDER BY p.post_id DESC LIMIT 10');
CACHE('bb_cache')->set('new_post', $new_post, 60);