Zend_Db_Statement_Exception Object
(
    [message:protected] => SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sklep_www4.catalog_product_flat_1' doesn't exist, query was: SELECT DISTINCT `e`.`attribute_set_id` FROM `catalog_product_flat_1` AS `e`
 INNER JOIN `catalog_category_product_index` AS `cat_index` ON cat_index.product_id=e.entity_id AND cat_index.store_id=1 AND cat_index.visibility IN(2, 4) AND cat_index.category_id = 1019
 INNER JOIN `catalog_product_index_price` AS `price_index` ON price_index.entity_id = e.entity_id AND price_index.website_id = 1 AND price_index.customer_group_id = 0 WHERE (e.status = 1)
    [string:Exception:private] => 
    [code:protected] => 42
    [file:protected] => I:\WWW\Sklep_www4\lib\Zend\Db\Statement\Pdo.php
    [line:protected] => 235
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => I:\WWW\Sklep_www4\lib\Varien\Db\Statement\Pdo\Mysql.php
                    [line] => 110
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                )

            [1] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Zend\Db\Statement.php
                    [line] => 291
                    [function] => _execute
                    [class] => Varien_Db_Statement_Pdo_Mysql
                    [type] => ->
                )

            [2] => Array
                (
                    [file] => I:\WWW\Sklep_www4\lib\Zend\Db\Adapter\Abstract.php
                    [line] => 480
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                )

            [3] => Array
                (
                    [file] => I:\WWW\Sklep_www4\lib\Zend\Db\Adapter\Pdo\Abstract.php
                    [line] => 238
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                )

            [4] => Array
                (
                    [file] => I:\WWW\Sklep_www4\lib\Varien\Db\Adapter\Pdo\Mysql.php
                    [line] => 504
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                )

            [5] => Array
                (
                    [file] => I:\WWW\Sklep_www4\lib\Zend\Db\Adapter\Abstract.php
                    [line] => 794
                    [function] => query
                    [class] => Varien_Db_Adapter_Pdo_Mysql
                    [type] => ->
                )

            [6] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Model\Resource\Product\Collection.php
                    [line] => 1096
                    [function] => fetchCol
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                )

            [7] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Model\Layer.php
                    [line] => 290
                    [function] => getSetIds
                    [class] => Mage_Catalog_Model_Resource_Product_Collection
                    [type] => ->
                )

            [8] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Model\Layer.php
                    [line] => 220
                    [function] => _getSetIds
                    [class] => Mage_Catalog_Model_Layer
                    [type] => ->
                )

            [9] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Block\Layer\View.php
                    [line] => 163
                    [function] => getFilterableAttributes
                    [class] => Mage_Catalog_Model_Layer
                    [type] => ->
                )

            [10] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Block\Layer\View.php
                    [line] => 122
                    [function] => _getFilterableAttributes
                    [class] => Mage_Catalog_Block_Layer_View
                    [type] => ->
                )

            [11] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Block\Abstract.php
                    [line] => 297
                    [function] => _prepareLayout
                    [class] => Mage_Catalog_Block_Layer_View
                    [type] => ->
                )

            [12] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                    [line] => 596
                    [function] => setLayout
                    [class] => Mage_Core_Block_Abstract
                    [type] => ->
                )

            [13] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                    [line] => 612
                    [function] => createBlock
                    [class] => Mage_Core_Model_Layout
                    [type] => ->
                )

            [14] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                    [line] => 239
                    [function] => addBlock
                    [class] => Mage_Core_Model_Layout
                    [type] => ->
                )

            [15] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                    [line] => 205
                    [function] => _generateBlock
                    [class] => Mage_Core_Model_Layout
                    [type] => ->
                )

            [16] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                    [line] => 206
                    [function] => generateBlocks
                    [class] => Mage_Core_Model_Layout
                    [type] => ->
                )

            [17] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                    [line] => 210
                    [function] => generateBlocks
                    [class] => Mage_Core_Model_Layout
                    [type] => ->
                )

            [18] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Action.php
                    [line] => 344
                    [function] => generateBlocks
                    [class] => Mage_Core_Model_Layout
                    [type] => ->
                )

            [19] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\controllers\CategoryController.php
                    [line] => 148
                    [function] => generateLayoutBlocks
                    [class] => Mage_Core_Controller_Varien_Action
                    [type] => ->
                )

            [20] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Action.php
                    [line] => 420
                    [function] => viewAction
                    [class] => Mage_Catalog_CategoryController
                    [type] => ->
                )

            [21] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php
                    [line] => 254
                    [function] => dispatch
                    [class] => Mage_Core_Controller_Varien_Action
                    [type] => ->
                )

            [22] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Front.php
                    [line] => 172
                    [function] => match
                    [class] => Mage_Core_Controller_Varien_Router_Standard
                    [type] => ->
                )

            [23] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\App.php
                    [line] => 381
                    [function] => dispatch
                    [class] => Mage_Core_Controller_Varien_Front
                    [type] => ->
                )

            [24] => Array
                (
                    [file] => I:\WWW\Sklep_www4\app\Mage.php
                    [line] => 698
                    [function] => run
                    [class] => Mage_Core_Model_App
                    [type] => ->
                )

            [25] => Array
                (
                    [file] => I:\WWW\Sklep_www4\index.php
                    [line] => 104
                    [function] => run
                    [class] => Mage
                    [type] => ::
                )

        )

    [previous:Exception:private] => PDOException Object
        (
            [message:protected] => SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sklep_www4.catalog_product_flat_1' doesn't exist
            [string:Exception:private] => 
            [code:protected] => 42S02
            [file:protected] => I:\WWW\Sklep_www4\lib\Zend\Db\Statement\Pdo.php
            [line:protected] => 228
            [trace:Exception:private] => Array
                (
                    [0] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\lib\Zend\Db\Statement\Pdo.php
                            [line] => 228
                            [function] => execute
                            [class] => PDOStatement
                            [type] => ->
                        )

                    [1] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\lib\Varien\Db\Statement\Pdo\Mysql.php
                            [line] => 110
                            [function] => _execute
                            [class] => Zend_Db_Statement_Pdo
                            [type] => ->
                        )

                    [2] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Zend\Db\Statement.php
                            [line] => 291
                            [function] => _execute
                            [class] => Varien_Db_Statement_Pdo_Mysql
                            [type] => ->
                        )

                    [3] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\lib\Zend\Db\Adapter\Abstract.php
                            [line] => 480
                            [function] => execute
                            [class] => Zend_Db_Statement
                            [type] => ->
                        )

                    [4] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\lib\Zend\Db\Adapter\Pdo\Abstract.php
                            [line] => 238
                            [function] => query
                            [class] => Zend_Db_Adapter_Abstract
                            [type] => ->
                        )

                    [5] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\lib\Varien\Db\Adapter\Pdo\Mysql.php
                            [line] => 504
                            [function] => query
                            [class] => Zend_Db_Adapter_Pdo_Abstract
                            [type] => ->
                        )

                    [6] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\lib\Zend\Db\Adapter\Abstract.php
                            [line] => 794
                            [function] => query
                            [class] => Varien_Db_Adapter_Pdo_Mysql
                            [type] => ->
                        )

                    [7] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Model\Resource\Product\Collection.php
                            [line] => 1096
                            [function] => fetchCol
                            [class] => Zend_Db_Adapter_Abstract
                            [type] => ->
                        )

                    [8] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Model\Layer.php
                            [line] => 290
                            [function] => getSetIds
                            [class] => Mage_Catalog_Model_Resource_Product_Collection
                            [type] => ->
                        )

                    [9] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Model\Layer.php
                            [line] => 220
                            [function] => _getSetIds
                            [class] => Mage_Catalog_Model_Layer
                            [type] => ->
                        )

                    [10] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Block\Layer\View.php
                            [line] => 163
                            [function] => getFilterableAttributes
                            [class] => Mage_Catalog_Model_Layer
                            [type] => ->
                        )

                    [11] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\Block\Layer\View.php
                            [line] => 122
                            [function] => _getFilterableAttributes
                            [class] => Mage_Catalog_Block_Layer_View
                            [type] => ->
                        )

                    [12] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Block\Abstract.php
                            [line] => 297
                            [function] => _prepareLayout
                            [class] => Mage_Catalog_Block_Layer_View
                            [type] => ->
                        )

                    [13] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                            [line] => 596
                            [function] => setLayout
                            [class] => Mage_Core_Block_Abstract
                            [type] => ->
                        )

                    [14] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                            [line] => 612
                            [function] => createBlock
                            [class] => Mage_Core_Model_Layout
                            [type] => ->
                        )

                    [15] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                            [line] => 239
                            [function] => addBlock
                            [class] => Mage_Core_Model_Layout
                            [type] => ->
                        )

                    [16] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                            [line] => 205
                            [function] => _generateBlock
                            [class] => Mage_Core_Model_Layout
                            [type] => ->
                        )

                    [17] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                            [line] => 206
                            [function] => generateBlocks
                            [class] => Mage_Core_Model_Layout
                            [type] => ->
                        )

                    [18] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\Layout.php
                            [line] => 210
                            [function] => generateBlocks
                            [class] => Mage_Core_Model_Layout
                            [type] => ->
                        )

                    [19] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Action.php
                            [line] => 344
                            [function] => generateBlocks
                            [class] => Mage_Core_Model_Layout
                            [type] => ->
                        )

                    [20] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Catalog\controllers\CategoryController.php
                            [line] => 148
                            [function] => generateLayoutBlocks
                            [class] => Mage_Core_Controller_Varien_Action
                            [type] => ->
                        )

                    [21] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Action.php
                            [line] => 420
                            [function] => viewAction
                            [class] => Mage_Catalog_CategoryController
                            [type] => ->
                        )

                    [22] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Router\Standard.php
                            [line] => 254
                            [function] => dispatch
                            [class] => Mage_Core_Controller_Varien_Action
                            [type] => ->
                        )

                    [23] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Controller\Varien\Front.php
                            [line] => 172
                            [function] => match
                            [class] => Mage_Core_Controller_Varien_Router_Standard
                            [type] => ->
                        )

                    [24] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\code\core\Mage\Core\Model\App.php
                            [line] => 381
                            [function] => dispatch
                            [class] => Mage_Core_Controller_Varien_Front
                            [type] => ->
                        )

                    [25] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\app\Mage.php
                            [line] => 698
                            [function] => run
                            [class] => Mage_Core_Model_App
                            [type] => ->
                        )

                    [26] => Array
                        (
                            [file] => I:\WWW\Sklep_www4\index.php
                            [line] => 104
                            [function] => run
                            [class] => Mage
                            [type] => ::
                        )

                )

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

        )

    [_previous:Zend_Exception:private] => 
)