これは app\design\adminhtml\default\default\template\customer\tab\addresses.phtml にある私のコードです
$arrParams = $this->getRequest()->getParams();
$read = Mage::getSingleton('core/resource')->getConnection('core_read');
$query = 'SELECT entity_id, parent_id, is_active FROM ' . Mage::getSingleton('core/resource')->getTableName('customer_address_entity').'
WHERE parent_id = '.$arrParams['id'];
$results1 = $read->fetchAll($query);
データは正しいのですが、バックエンドで新しい顧客を作成しようとするとエラーが発生します
(SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1)