getConnection(); $select = $connection->select() ->from( array('config' => $installer->getTable('core/config_data')), array('scope_id' => 'config.scope_id') ) ->where('config.path=?', 'paypal/general/merchant_country') ->where('config.value<>?', 'US'); $result = $connection->fetchAll($select); foreach ($result as $row) { $connection->delete( $installer->getTable('core/config_data'), 'path LIKE "%express_bml%"' . $connection->quoteInto(' AND scope_id = ?', $row['scope_id']) ); } $installer->endSetup();