$resource = Mage::getSingleton('core/resource');
$readConnection = $resource->getConnection('core_read');
$data = $readConnection->fetchRow(
$readConnection->select()
->from('amasty_storecredit_customer_balance') //表名
->where('website_id = ?', $websiteId)
->where('customer_id = ?', $customerId)
->limit(1)
);