PDOException Object
(
    [message:protected] => SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'bundle_ids'
    [string:Exception:private] => 
    [code:protected] => 42S21
    [file:protected] => /home/lwp2009/public_html/store/lib/Zend/Db/Statement/Pdo.php
    [line:protected] => 228
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Zend/Db/Statement/Pdo.php
                    [line] => 228
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Varien/Db/Statement/Pdo/Mysql.php
                    [line] => 110
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Zend/Db/Statement.php
                    [line] => 291
                    [function] => _execute
                    [class] => Varien_Db_Statement_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Zend/Db/Adapter/Abstract.php
                    [line] => 479
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD `bundle_ids` text NOT NULL DEFAULT ''
                            [1] => Array
                                (
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 428
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD `bundle_ids` text NOT NULL DEFAULT ''
                            [1] => Array
                                (
                                )

                        )

                )

            [6] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 347
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD `bundle_ids` text NOT NULL DEFAULT ''
                        )

                )

            [7] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 617
                    [function] => raw_query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => ALTER TABLE `sales_flat_quote` ADD `bundle_ids` text NOT NULL DEFAULT ''
                        )

                )

            [8] => Array
                (
                    [file] => /home/lwp2009/public_html/store/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 599
                    [function] => multi_query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
    DROP TABLE IF EXISTS `md_bundlediscount_bundles`;
        CREATE TABLE `md_bundlediscount_bundles`(
            `bundle_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
            `product_id` int(11) NOT NULL,
            `name` varchar(250) NOT NULL,
            `discount_type` smallint(5) NOT NULL default '0',
            `discount_price` decimal(12,4) NOT NULL,
            `status` smallint(5) NOT NULL default '1',
            `exclude_base_product` smallint(5) NOT NULL default '0',
            `sort_order` smallint(5) NOT NULL default '0',
            `store_ids` varchar(150) NOT NULL,
            `customer_groups` varchar(150) NOT NULL,
            `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
            `updated_at` datetime DEFAULT '0000-00-00 00:00:00',
            `date_from` date DEFAULT NULL COMMENT 'Enable Bundle From',
            `date_to` date DEFAULT NULL COMMENT 'Enable Bundle To',
            PRIMARY KEY (`bundle_id`)
        )ENGINE=InnoDB DEFAULT CHARSET=utf8;
        
        DROP TABLE IF EXISTS `md_bundlediscount_items`;
        CREATE TABLE `md_bundlediscount_items`(
            `item_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
            `bundle_id` int(11) NOT NULL,
            `product_id` int(11) NOT NULL,
            `qty` smallint(5) NOT NULL default '1',
            `sort_order` smallint(5) NOT NULL default '0',
            PRIMARY KEY (`item_id`)
        )ENGINE=InnoDB DEFAULT CHARSET=utf8;
        
        ALTER TABLE `sales_flat_quote` ADD `bundle_ids` text NOT NULL DEFAULT '';
        ALTER TABLE `sales_flat_quote` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_quote` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_order` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_order` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_invoice` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_invoice` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_creditmemo` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_creditmemo` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            


                        )

                )

            [9] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 933
                    [function] => multiQuery
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
    DROP TABLE IF EXISTS `md_bundlediscount_bundles`;
        CREATE TABLE `md_bundlediscount_bundles`(
            `bundle_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
            `product_id` int(11) NOT NULL,
            `name` varchar(250) NOT NULL,
            `discount_type` smallint(5) NOT NULL default '0',
            `discount_price` decimal(12,4) NOT NULL,
            `status` smallint(5) NOT NULL default '1',
            `exclude_base_product` smallint(5) NOT NULL default '0',
            `sort_order` smallint(5) NOT NULL default '0',
            `store_ids` varchar(150) NOT NULL,
            `customer_groups` varchar(150) NOT NULL,
            `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
            `updated_at` datetime DEFAULT '0000-00-00 00:00:00',
            `date_from` date DEFAULT NULL COMMENT 'Enable Bundle From',
            `date_to` date DEFAULT NULL COMMENT 'Enable Bundle To',
            PRIMARY KEY (`bundle_id`)
        )ENGINE=InnoDB DEFAULT CHARSET=utf8;
        
        DROP TABLE IF EXISTS `md_bundlediscount_items`;
        CREATE TABLE `md_bundlediscount_items`(
            `item_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
            `bundle_id` int(11) NOT NULL,
            `product_id` int(11) NOT NULL,
            `qty` smallint(5) NOT NULL default '1',
            `sort_order` smallint(5) NOT NULL default '0',
            PRIMARY KEY (`item_id`)
        )ENGINE=InnoDB DEFAULT CHARSET=utf8;
        
        ALTER TABLE `sales_flat_quote` ADD `bundle_ids` text NOT NULL DEFAULT '';
        ALTER TABLE `sales_flat_quote` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_quote` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_order` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_order` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_invoice` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_invoice` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_creditmemo` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_creditmemo` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            


                        )

                )

            [10] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/community/MD/Bundlediscount/sql/md_bundlediscount_setup/mysql4-install-1.0.0.php
                    [line] => 74
                    [function] => run
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
    DROP TABLE IF EXISTS `md_bundlediscount_bundles`;
        CREATE TABLE `md_bundlediscount_bundles`(
            `bundle_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
            `product_id` int(11) NOT NULL,
            `name` varchar(250) NOT NULL,
            `discount_type` smallint(5) NOT NULL default '0',
            `discount_price` decimal(12,4) NOT NULL,
            `status` smallint(5) NOT NULL default '1',
            `exclude_base_product` smallint(5) NOT NULL default '0',
            `sort_order` smallint(5) NOT NULL default '0',
            `store_ids` varchar(150) NOT NULL,
            `customer_groups` varchar(150) NOT NULL,
            `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
            `updated_at` datetime DEFAULT '0000-00-00 00:00:00',
            `date_from` date DEFAULT NULL COMMENT 'Enable Bundle From',
            `date_to` date DEFAULT NULL COMMENT 'Enable Bundle To',
            PRIMARY KEY (`bundle_id`)
        )ENGINE=InnoDB DEFAULT CHARSET=utf8;
        
        DROP TABLE IF EXISTS `md_bundlediscount_items`;
        CREATE TABLE `md_bundlediscount_items`(
            `item_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
            `bundle_id` int(11) NOT NULL,
            `product_id` int(11) NOT NULL,
            `qty` smallint(5) NOT NULL default '1',
            `sort_order` smallint(5) NOT NULL default '0',
            PRIMARY KEY (`item_id`)
        )ENGINE=InnoDB DEFAULT CHARSET=utf8;
        
        ALTER TABLE `sales_flat_quote` ADD `bundle_ids` text NOT NULL DEFAULT '';
        ALTER TABLE `sales_flat_quote` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_quote` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_order` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_order` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_invoice` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_invoice` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            
        ALTER TABLE `sales_flat_creditmemo` ADD `bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
        ALTER TABLE `sales_flat_creditmemo` ADD `base_bundle_discount_amount` decimal(12,4) NOT NULL DEFAULT '0.0000';
            


                        )

                )

            [11] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => /home/lwp2009/public_html/store/app/code/community/MD/Bundlediscount/sql/md_bundlediscount_setup/mysql4-install-1.0.0.php
                        )

                    [function] => include
                )

            [12] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 421
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => install
                            [1] => 
                            [2] => 2.0.2
                        )

                )

            [13] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 327
                    [function] => _installResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 2.0.2
                        )

                )

            [14] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 235
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [15] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Mage/Core/Model/App.php
                    [line] => 417
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [16] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/code/core/Mage/Core/Model/App.php
                    [line] => 343
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [17] => Array
                (
                    [file] => /home/lwp2009/public_html/store/app/Mage.php
                    [line] => 684
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [scope_code] => 
                                    [scope_type] => store
                                    [options] => Array
                                        (
                                        )

                                )

                        )

                )

            [18] => Array
                (
                    [file] => /home/lwp2009/public_html/store/index.php
                    [line] => 134
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                            [1] => store
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => 42S21
            [1] => 1060
            [2] => Duplicate column name 'bundle_ids'
        )

)