$sql = "CALL xxxxxx('{$type}')";
return Mage::getSingleton('core/resource')->getConnection('core_write')->fetchOne($sql);