PDOException Object
(
    [message:protected] => SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '3-1-531-0' for key 2
    [string:private] => 
    [code:protected] => 23000
    [file:protected] => /home/virtualb/public_html/posdirect/lib/Varien/Db/Adapter/Pdo/Mysql.php
    [line:protected] => 276
    [trace:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 276
                    [function] => query
                    [class] => PDO
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `catalog_category_entity_int`
(`entity_type_id`, `attribute_id`, `entity_id`, `value`)
    SELECT '3', '531', `entity_id`, '1'
        FROM `catalog_category_entity`
                        )

                )

            [1] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 397
                    [function] => raw_query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => INSERT INTO `catalog_category_entity_int`
(`entity_type_id`, `attribute_id`, `entity_id`, `value`)
    SELECT '3', '531', `entity_id`, '1'
        FROM `catalog_category_entity`
                        )

                )

            [2] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 636
                    [function] => multi_query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
INSERT INTO `catalog_category_entity_int`
(`entity_type_id`, `attribute_id`, `entity_id`, `value`)
    SELECT '3', '531', `entity_id`, '1'
        FROM `catalog_category_entity`;

                        )

                )

            [3] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.4.0.0.21-1.4.0.0.22.php
                    [line] => 60
                    [function] => run
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
INSERT INTO `catalog_category_entity_int`
(`entity_type_id`, `attribute_id`, `entity_id`, `value`)
    SELECT '3', '531', `entity_id`, '1'
        FROM `catalog_category_entity`;

                        )

                )

            [4] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 376
                    [args] => Array
                        (
                            [0] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-upgrade-1.4.0.0.21-1.4.0.0.22.php
                        )

                    [function] => include
                )

            [5] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 289
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => upgrade
                            [1] => 1.4.0.0.21
                            [2] => 1.4.0.0.28
                        )

                )

            [6] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 233
                    [function] => _upgradeResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1.4.0.0.21
                            [1] => 1.4.0.0.28
                        )

                )

            [7] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 161
                    [function] => applyUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [8] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Core/Model/App.php
                    [line] => 363
                    [function] => applyAllUpdates
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [9] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/app/code/core/Mage/Core/Model/App.php
                    [line] => 295
                    [function] => _initModules
                    [class] => Mage_Core_Model_App
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

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

                                )

                        )

                )

            [11] => Array
                (
                    [file] => /home/virtualb/public_html/posdirect/index.php
                    [line] => 78
                    [function] => run
                    [class] => Mage
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                            [1] => store
                        )

                )

        )

    [errorInfo] => Array
        (
            [0] => 23000
            [1] => 1062
            [2] => Duplicate entry '3-1-531-0' for key 2
        )

)