При нажатии на кнопку «ответить» из папки входящие выдается следующая ошибка:
Unable to get attachment information.
DEBUG MODE
SQL Error : 1054 Unknown column 'privmsg_id' in 'where clause'
SELECT attach_id FROM phpbb_attachments WHERE privmsg_id = 8
Line : 311
File : posting_attachments.php
Может подскажет кто нибудь?

// nothing, if the user is not authorized or attachment mod disabled
if (intval($attach_config['disable_mod']) || !$is_auth['auth_attachments'])
{
return false;
}
// Get those attach_ids allowed for lists from the attachments table...
$allowed_attach_ids = array();
if ($post_id)
{
$sql = 'SELECT attach_id
FROM ' . ATTACHMENTS_TABLE . '
WHERE ' . $sql_id . ' = ' . $post_id;
$result = $db->sql_query($sql);
if (!$result)
{
message_die(GENERAL_ERROR, 'Unable to get attachment information.', '', __LINE__, __FILE__, $sql);
}
while ($_row = $db->sql_fetchrow($result))
{
$allowed_attach_ids[] = $_row['attach_id'];
}
$db->sql_freeresult($result);
}
// Check the submitted variables - do not allow wrong values
$actual_id_list = get_var('attach_id_list', array(0));
$actual_list = get_var('attachment_list', array(''));
for ($i = 0; $i < sizeof($actual_list); $i++)