Include grabbing the prefixid from the thread table in your query. Then in your while statement:
PHP Code:
if ($thread_get_info['prefixid'])
{
$thread_get_info['prefix_plain_html'] = htmlspecialchars_uni($vbphrase["prefix_$thread_get_info[prefixid]_title_plain"]);
$thread_get_info['prefix_rich'] = $vbphrase["prefix_$thread_get_info[prefixid]_title_rich"];
}
else
{
$thread_get_info['prefix_plain_html'] = '';
$thread_get_info['prefix_rich'] = '';
}
If you don't want the plain html one, then you may remove those lines.