PDOException Object
(
    [message:protected] => SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gms_new.sales_bestsellers_aggregated_daily' doesn't exist
    [string:Exception:private] => 
    [code:protected] => 42S02
    [file:protected] => /home/gms/public_html/lib/Zend/Db/Statement/Pdo.php
    [line:protected] => 228
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/gms/public_html/lib/Zend/Db/Statement/Pdo.php
                    [line] => 228
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/gms/public_html/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/gms/public_html/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/gms/public_html/lib/Zend/Db/Adapter/Abstract.php
                    [line] => 480
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /home/gms/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SHOW CREATE TABLE `sales_bestsellers_aggregated_daily`
                            [1] => Array
                                (
                                )

                        )

                )

            [5] => Array
                (
                    [file] => /home/gms/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 504
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SHOW CREATE TABLE `sales_bestsellers_aggregated_daily`
                            [1] => Array
                                (
                                )

                        )

                )

            [6] => Array
                (
                    [file] => /home/gms/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 423
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SHOW CREATE TABLE `sales_bestsellers_aggregated_daily`
                        )

                )

            [7] => Array
                (
                    [file] => /home/gms/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 454
                    [function] => raw_query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SHOW CREATE TABLE `sales_bestsellers_aggregated_daily`
                        )

                )

            [8] => Array
                (
                    [file] => /home/gms/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 1095
                    [function] => raw_fetchRow
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SHOW CREATE TABLE `sales_bestsellers_aggregated_daily`
                            [1] => Create Table
                        )

                )

            [9] => Array
                (
                    [file] => /home/gms/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 1131
                    [function] => getCreateTable
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => sales_bestsellers_aggregated_daily
                            [1] => 
                        )

                )

            [10] => Array
                (
                    [file] => /home/gms/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php
                    [line] => 774
                    [function] => getForeignKeys
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => sales_bestsellers_aggregated_daily
                            [1] => 
                        )

                )

            [11] => Array
                (
                    [file] => /home/gms/public_html/app/code/core/Mage/Sales/sql/sales_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php
                    [line] => 37
                    [function] => dropForeignKey
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => sales_bestsellers_aggregated_daily
                            [1] => FK_PRODUCT_ORDERED_AGGREGATED_DAILY_PRODUCT_ID
                        )

                )

            [12] => Array
                (
                    [file] => /home/gms/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 624
                    [args] => Array
                        (
                            [0] => /home/gms/public_html/app/code/core/Mage/Sales/sql/sales_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php
                        )

                    [function] => include
                )

            [13] => Array
                (
                    [file] => /home/gms/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 437
                    [function] => _modifyResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => upgrade
                            [1] => 1.4.0.25
                            [2] => 1.6.0.9
                        )

                )

            [14] => Array
                (
                    [file] => /home/gms/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php
                    [line] => 320
                    [function] => _upgradeResourceDb
                    [class] => Mage_Core_Model_Resource_Setup
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1.4.0.25
                            [1] => 1.6.0.9
                        )

                )

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

                )

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

                )

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

                )

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

                                )

                        )

                )

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

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => 42S02
            [1] => 1146
            [2] => Table 'gms_new.sales_bestsellers_aggregated_daily' doesn't exist
        )

    [xdebug_message] => ( ! ) PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'gms_new.sales_bestsellers_aggregated_daily' doesn't exist in /home/gms/public_html/lib/Zend/Db/Statement/Pdo.php on line 228
Call Stack
#TimeMemoryFunctionLocation
10.0001634416{main}(  )../index.php:0
20.0020773248Mage::run(  )../index.php:83
30.00881132216Mage_Core_Model_App->run(  )../Mage.php:684
40.02101588648Mage_Core_Model_App->_initModules(  )../App.php:354
50.91081616920Mage_Core_Model_Resource_Setup::applyAllUpdates(  )../App.php:428
60.93122938040Mage_Core_Model_Resource_Setup->applyUpdates(  )../Setup.php:235
70.93122938624Mage_Core_Model_Resource_Setup->_upgradeResourceDb(  )../Setup.php:320
80.93122938704Mage_Core_Model_Resource_Setup->_modifyResourceDb(  )../Setup.php:437
90.93472948224include( '/home/gms/public_html/app/code/core/Mage/Sales/sql/sales_setup/mysql4-upgrade-1.5.9.9-1.6.0.0.php' )../Setup.php:624
100.93642948984Varien_Db_Adapter_Pdo_Mysql->dropForeignKey(  )../mysql4-upgrade-1.5.9.9-1.6.0.0.php:37
110.93642949032Varien_Db_Adapter_Pdo_Mysql->getForeignKeys(  )../Mysql.php:774
120.93642949352Varien_Db_Adapter_Pdo_Mysql->getCreateTable(  )../Mysql.php:1131
130.93652949704Varien_Db_Adapter_Pdo_Mysql->raw_fetchRow(  )../Mysql.php:1095
140.93652949704Varien_Db_Adapter_Pdo_Mysql->raw_query(  )../Mysql.php:454

)