<?php
if (defined('IN_VBMAIL') AND $idfield == $table . 'id')
{
	$idfield = substr($table, strlen('dbtech_vbmail_')) . 'id';
	$handled = true;
	
	$item = $vbulletin->db->query_first_slave("
		SELECT $idfield, $titlename AS title
		FROM " . TABLE_PREFIX . "$table
		WHERE $idfield = '$itemid'
	");
}
?>