Zend_Db_Statement_Exception Object
(
    [_chainedException:protected] => PDOException Object
        (
            [message:protected] => SQLSTATE[42S22]: Column not found: 1054 Unknown column 'used_for_sort_by' in 'field list'
            [string:Exception:private] => 
            [code:protected] => 42S22
            [file:protected] => /home/officeshop/public_html/lib/Zend/Db/Statement/Pdo.php
            [line:protected] => 228
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => /home/officeshop/public_html/lib/Zend/Db/Statement/Pdo.php
                            [line] => 228
                            [function] => execute
                            [class] => PDOStatement
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [1] => Array
                        (
                            [file] => /home/officeshop/public_html/lib/Zend/Db/Statement.php
                            [line] => 300
                            [function] => _execute
                            [class] => Zend_Db_Statement_Pdo
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [2] => Array
                        (
                            [file] => /home/officeshop/public_html/lib/Zend/Db/Adapter/Abstract.php
                            [line] => 468
                            [function] => execute
                            [class] => Zend_Db_Statement
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => Array
                                        (
                                        )

                                )

                        )

                    [3] => Array
                        (
                            [file] => /home/officeshop/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php
                            [line] => 238
                            [function] => query
                            [class] => Zend_Db_Adapter_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => update eav_attribute set entity_type_id='3', attribute_code='name', backend_model='', backend_type='varchar', backend_table='', frontend_model='', frontend_input='text', frontend_label='Name', frontend_class='', source_model='', is_required='1', is_user_defined='', default_value='', is_unique='', note='', is_visible_in_advanced_search=0, used_for_sort_by=0, apply_to='', position=0, is_configurable=1 where attribute_id='33' and entity_type_id='3'
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [4] => Array
                        (
                            [file] => /home/officeshop/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                            [line] => 333
                            [function] => query
                            [class] => Zend_Db_Adapter_Pdo_Abstract
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => update eav_attribute set entity_type_id='3', attribute_code='name', backend_model='', backend_type='varchar', backend_table='', frontend_model='', frontend_input='text', frontend_label='Name', frontend_class='', source_model='', is_required='1', is_user_defined='', default_value='', is_unique='', note='', is_visible_in_advanced_search=0, used_for_sort_by=0, apply_to='', position=0, is_configurable=1 where attribute_id='33' and entity_type_id='3'
                                    [1] => Array
                                        (
                                        )

                                )

                        )

                    [5] => Array
                        (
                            [file] => /home/officeshop/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 526
                            [function] => query
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => update eav_attribute set entity_type_id='3', attribute_code='name', backend_model='', backend_type='varchar', backend_table='', frontend_model='', frontend_input='text', frontend_label='Name', frontend_class='', source_model='', is_required='1', is_user_defined='', default_value='', is_unique='', note='', is_visible_in_advanced_search=0, used_for_sort_by=0, apply_to='', position=0, is_configurable=1 where attribute_id='33' and entity_type_id='3'
                                )

                        )

                    [6] => Array
                        (
                            [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                            [line] => 717
                            [function] => updateTableRow
                            [class] => Mage_Core_Model_Resource_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => eav/attribute
                                    [1] => attribute_id
                                    [2] => 33
                                    [3] => Array
                                        (
                                            [entity_type_id] => 3
                                            [attribute_code] => name
                                            [backend_model] => 
                                            [backend_type] => varchar
                                            [backend_table] => 
                                            [frontend_model] => 
                                            [frontend_input] => text
                                            [frontend_label] => Name
                                            [frontend_class] => 
                                            [source_model] => 
                                            [is_required] => 1
                                            [is_user_defined] => 
                                            [default_value] => 
                                            [is_unique] => 
                                            [note] => 
                                            [is_visible_in_advanced_search] => 0
                                            [used_for_sort_by] => 0
                                            [apply_to] => 
                                            [position] => 0
                                            [is_configurable] => 1
                                        )

                                    [4] => 
                                    [5] => entity_type_id
                                    [6] => 3
                                )

                        )

                    [7] => Array
                        (
                            [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                            [line] => 670
                            [function] => _updateAttribute
                            [class] => Mage_Eav_Model_Entity_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => 3
                                    [1] => 33
                                    [2] => Array
                                        (
                                            [entity_type_id] => 3
                                            [attribute_code] => name
                                            [backend_model] => 
                                            [backend_type] => varchar
                                            [backend_table] => 
                                            [frontend_model] => 
                                            [frontend_input] => text
                                            [frontend_label] => Name
                                            [frontend_class] => 
                                            [source_model] => 
                                            [is_required] => 1
                                            [is_user_defined] => 
                                            [default_value] => 
                                            [is_unique] => 
                                            [note] => 
                                            [frontend_input_renderer] => 
                                            [is_global] => 0
                                            [is_visible] => 1
                                            [is_searchable] => 
                                            [is_filterable] => 
                                            [is_comparable] => 
                                            [is_visible_on_front] => 
                                            [is_wysiwyg_enabled] => 0
                                            [is_html_allowed_on_front] => 0
                                            [is_visible_in_advanced_search] => 0
                                            [is_used_for_price_rules] => 1
                                            [is_filterable_in_search] => 0
                                            [used_in_product_listing] => 0
                                            [used_for_sort_by] => 0
                                            [apply_to] => 
                                            [position] => 0
                                            [is_configurable] => 1
                                        )

                                    [3] => 
                                    [4] => 
                                )

                        )

                    [8] => Array
                        (
                            [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                            [line] => 577
                            [function] => updateAttribute
                            [class] => Mage_Eav_Model_Entity_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => 3
                                    [1] => 33
                                    [2] => Array
                                        (
                                            [entity_type_id] => 3
                                            [attribute_code] => name
                                            [backend_model] => 
                                            [backend_type] => varchar
                                            [backend_table] => 
                                            [frontend_model] => 
                                            [frontend_input] => text
                                            [frontend_label] => Name
                                            [frontend_class] => 
                                            [source_model] => 
                                            [is_required] => 1
                                            [is_user_defined] => 
                                            [default_value] => 
                                            [is_unique] => 
                                            [note] => 
                                            [frontend_input_renderer] => 
                                            [is_global] => 0
                                            [is_visible] => 1
                                            [is_searchable] => 
                                            [is_filterable] => 
                                            [is_comparable] => 
                                            [is_visible_on_front] => 
                                            [is_wysiwyg_enabled] => 0
                                            [is_html_allowed_on_front] => 0
                                            [is_visible_in_advanced_search] => 0
                                            [is_used_for_price_rules] => 1
                                            [is_filterable_in_search] => 0
                                            [used_in_product_listing] => 0
                                            [used_for_sort_by] => 0
                                            [apply_to] => 
                                            [position] => 0
                                            [is_configurable] => 1
                                        )

                                    [3] => 
                                    [4] => 
                                )

                        )

                    [9] => Array
                        (
                            [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                            [line] => 1051
                            [function] => addAttribute
                            [class] => Mage_Eav_Model_Entity_Setup
                            [type] => ->
                            [args] => Array
                                (
                                    [0] => catalog_category
                                    [1] => name
                                    [2] => Array
                                        (
                                            [type] => varchar
                                            [backend] => 
                                            [frontend] => 
                                            [label] => Name
                                            [input] => text
                                            [class] => 
                                            [source] => 
                                            [global] => 0
                                            [visible] => 1
                                            [required] => 1
                                            [user_defined] => 
                                            [default] => 
                                            [searchable] => 
                                            [filterable] => 
                                            [comparable] => 
                                            [visible_on_front] => 
                                            [unique] => 
                                        )

                                )

                        )

                    [10] => Array
                        (
                            [file] => /home/officeshop/public_html/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-install-1.4.0.0.0.php
                            [line] => 680
                            [function] => installEntities
                            [class] => Mage_Eav_Model_Entity_Setup
                            [type] => ->
                            [args] => Array
                                (
                                )

                        )

                    [11] => Array
                        (
                            [file] => /home/officeshop/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                            [line] => 360
                            [args] => Array
                                (
                                    [0] => /home/officeshop/public_html/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-install-1.4.0.0.0.php
                                )

                            [function] => include
                        )

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

                        )

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

                        )

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

                        )

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

                        )

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

                        )

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

                                        )

                                )

                        )

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

                        )

                )

            [previous:Exception:private] => 
            [errorInfo] => Array
                (
                    [0] => 42S22
                    [1] => 1054
                    [2] => Unknown column 'used_for_sort_by' in 'field list'
                )

        )

    [message:protected] => SQLSTATE[42S22]: Column not found: 1054 Unknown column 'used_for_sort_by' in 'field list'
    [string:Exception:private] => 
    [code:protected] => 42S22
    [file:protected] => /home/officeshop/public_html/lib/Zend/Db/Statement/Pdo.php
    [line:protected] => 234
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/officeshop/public_html/lib/Zend/Db/Statement.php
                    [line] => 300
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/officeshop/public_html/lib/Zend/Db/Adapter/Abstract.php
                    [line] => 468
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/officeshop/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => update eav_attribute set entity_type_id='3', attribute_code='name', backend_model='', backend_type='varchar', backend_table='', frontend_model='', frontend_input='text', frontend_label='Name', frontend_class='', source_model='', is_required='1', is_user_defined='', default_value='', is_unique='', note='', is_visible_in_advanced_search=0, used_for_sort_by=0, apply_to='', position=0, is_configurable=1 where attribute_id='33' and entity_type_id='3'
                            [1] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /home/officeshop/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 333
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => update eav_attribute set entity_type_id='3', attribute_code='name', backend_model='', backend_type='varchar', backend_table='', frontend_model='', frontend_input='text', frontend_label='Name', frontend_class='', source_model='', is_required='1', is_user_defined='', default_value='', is_unique='', note='', is_visible_in_advanced_search=0, used_for_sort_by=0, apply_to='', position=0, is_configurable=1 where attribute_id='33' and entity_type_id='3'
                            [1] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 526
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => update eav_attribute set entity_type_id='3', attribute_code='name', backend_model='', backend_type='varchar', backend_table='', frontend_model='', frontend_input='text', frontend_label='Name', frontend_class='', source_model='', is_required='1', is_user_defined='', default_value='', is_unique='', note='', is_visible_in_advanced_search=0, used_for_sort_by=0, apply_to='', position=0, is_configurable=1 where attribute_id='33' and entity_type_id='3'
                        )

                )

            [5] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                    [line] => 717
                    [function] => updateTableRow
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => eav/attribute
                            [1] => attribute_id
                            [2] => 33
                            [3] => Array
                                (
                                    [entity_type_id] => 3
                                    [attribute_code] => name
                                    [backend_model] => 
                                    [backend_type] => varchar
                                    [backend_table] => 
                                    [frontend_model] => 
                                    [frontend_input] => text
                                    [frontend_label] => Name
                                    [frontend_class] => 
                                    [source_model] => 
                                    [is_required] => 1
                                    [is_user_defined] => 
                                    [default_value] => 
                                    [is_unique] => 
                                    [note] => 
                                    [is_visible_in_advanced_search] => 0
                                    [used_for_sort_by] => 0
                                    [apply_to] => 
                                    [position] => 0
                                    [is_configurable] => 1
                                )

                            [4] => 
                            [5] => entity_type_id
                            [6] => 3
                        )

                )

            [6] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                    [line] => 670
                    [function] => _updateAttribute
                    [class] => Mage_Eav_Model_Entity_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 3
                            [1] => 33
                            [2] => Array
                                (
                                    [entity_type_id] => 3
                                    [attribute_code] => name
                                    [backend_model] => 
                                    [backend_type] => varchar
                                    [backend_table] => 
                                    [frontend_model] => 
                                    [frontend_input] => text
                                    [frontend_label] => Name
                                    [frontend_class] => 
                                    [source_model] => 
                                    [is_required] => 1
                                    [is_user_defined] => 
                                    [default_value] => 
                                    [is_unique] => 
                                    [note] => 
                                    [frontend_input_renderer] => 
                                    [is_global] => 0
                                    [is_visible] => 1
                                    [is_searchable] => 
                                    [is_filterable] => 
                                    [is_comparable] => 
                                    [is_visible_on_front] => 
                                    [is_wysiwyg_enabled] => 0
                                    [is_html_allowed_on_front] => 0
                                    [is_visible_in_advanced_search] => 0
                                    [is_used_for_price_rules] => 1
                                    [is_filterable_in_search] => 0
                                    [used_in_product_listing] => 0
                                    [used_for_sort_by] => 0
                                    [apply_to] => 
                                    [position] => 0
                                    [is_configurable] => 1
                                )

                            [3] => 
                            [4] => 
                        )

                )

            [7] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                    [line] => 577
                    [function] => updateAttribute
                    [class] => Mage_Eav_Model_Entity_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 3
                            [1] => 33
                            [2] => Array
                                (
                                    [entity_type_id] => 3
                                    [attribute_code] => name
                                    [backend_model] => 
                                    [backend_type] => varchar
                                    [backend_table] => 
                                    [frontend_model] => 
                                    [frontend_input] => text
                                    [frontend_label] => Name
                                    [frontend_class] => 
                                    [source_model] => 
                                    [is_required] => 1
                                    [is_user_defined] => 
                                    [default_value] => 
                                    [is_unique] => 
                                    [note] => 
                                    [frontend_input_renderer] => 
                                    [is_global] => 0
                                    [is_visible] => 1
                                    [is_searchable] => 
                                    [is_filterable] => 
                                    [is_comparable] => 
                                    [is_visible_on_front] => 
                                    [is_wysiwyg_enabled] => 0
                                    [is_html_allowed_on_front] => 0
                                    [is_visible_in_advanced_search] => 0
                                    [is_used_for_price_rules] => 1
                                    [is_filterable_in_search] => 0
                                    [used_in_product_listing] => 0
                                    [used_for_sort_by] => 0
                                    [apply_to] => 
                                    [position] => 0
                                    [is_configurable] => 1
                                )

                            [3] => 
                            [4] => 
                        )

                )

            [8] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Eav/Model/Entity/Setup.php
                    [line] => 1051
                    [function] => addAttribute
                    [class] => Mage_Eav_Model_Entity_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => catalog_category
                            [1] => name
                            [2] => Array
                                (
                                    [type] => varchar
                                    [backend] => 
                                    [frontend] => 
                                    [label] => Name
                                    [input] => text
                                    [class] => 
                                    [source] => 
                                    [global] => 0
                                    [visible] => 1
                                    [required] => 1
                                    [user_defined] => 
                                    [default] => 
                                    [searchable] => 
                                    [filterable] => 
                                    [comparable] => 
                                    [visible_on_front] => 
                                    [unique] => 
                                )

                        )

                )

            [9] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-install-1.4.0.0.0.php
                    [line] => 680
                    [function] => installEntities
                    [class] => Mage_Eav_Model_Entity_Setup
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [10] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 360
                    [args] => Array
                        (
                            [0] => /home/officeshop/public_html/app/code/core/Mage/Catalog/sql/catalog_setup/mysql4-install-1.4.0.0.0.php
                        )

                    [function] => include
                )

            [11] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 260
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => install
                            [1] => 
                            [2] => 1.4.0.0.21
                        )

                )

            [12] => Array
                (
                    [file] => /home/officeshop/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 224
                    [function] => _installResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1.4.0.0.21
                        )

                )

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

                )

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

                )

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

                )

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

                                )

                        )

                )

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

                )

        )

    [previous:Exception:private] => 
)