Zend_Db_Statement_Exception Object
(
    [message:protected] => SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for integer: ""
LINE 1: ...p.parent_id=ap2.category_id) WHERE ap.category_id='' LIMIT 1
                                                             ^
    [string:private] => 
    [code:protected] => 0
    [file:protected] => /library/Zend/Db/Statement/Pdo.php
    [line:protected] => 227
    [trace:private] => Array
        (
            [0] => Array
                (
                    [file] => /library/Zend/Db/Statement.php
                    [line] => 294
                    [function] => _execute
                    [class] => Zend_Db_Statement_Pdo
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /library/Zend/Db/Adapter/Abstract.php
                    [line] => 406
                    [function] => execute
                    [class] => Zend_Db_Statement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /library/Zend/Db/Adapter/Pdo/Abstract.php
                    [line] => 206
                    [function] => query
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT ap2.* FROM app_categories ap INNER JOIN app_categories ap2 ON (ap.parent_id=ap2.category_id) WHERE ap.category_id='' LIMIT 1
                            [1] => Array
                                (
                                )

                        )

                )

            [3] => Array
                (
                    [file] => /library/Zend/Db/Adapter/Abstract.php
                    [line] => 703
                    [function] => query
                    [class] => Zend_Db_Adapter_Pdo_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT ap2.* FROM app_categories ap INNER JOIN app_categories ap2 ON (ap.parent_id=ap2.category_id) WHERE ap.category_id='' LIMIT 1
                            [1] => Array
                                (
                                )

                        )

                )

            [4] => Array
                (
                    [file] => /application/models/DBCategories.class.php
                    [line] => 95
                    [function] => fetchRow
                    [class] => Zend_Db_Adapter_Abstract
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT ap2.* FROM app_categories ap INNER JOIN app_categories ap2 ON (ap.parent_id=ap2.category_id) WHERE ap.category_id='' LIMIT 1
                        )

                )

            [5] => Array
                (
                    [file] => /application/modules/shop_products/shop_products.php
                    [line] => 407
                    [function] => getParent
                    [class] => DBCategories
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                        )

                )

            [6] => Array
                (
                    [file] => /application/models/PageLoader.class.php
                    [line] => 89
                    [function] => noRouteAction
                    [class] => shop_products
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 956Action
                        )

                )

            [7] => Array
                (
                    [file] => /application/controllers/IndexController.php
                    [line] => 31
                    [function] => getContent
                    [class] => PageLoader
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [8] => Array
                (
                    [file] => /application/controllers/IndexController.php
                    [line] => 56
                    [function] => noRouteAction
                    [class] => IndexController
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [9] => Array
                (
                    [file] => /library/Zend/Controller/Action.php
                    [line] => 498
                    [function] => __call
                    [class] => IndexController
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 956Action
                            [1] => Array
                                (
                                )

                        )

                )

            [10] => Array
                (
                    [file] => /library/Zend/Controller/Action.php
                    [line] => 498
                    [function] => 956Action
                    [class] => IndexController
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [11] => Array
                (
                    [file] => /library/Zend/Controller/Dispatcher/Standard.php
                    [line] => 242
                    [function] => dispatch
                    [class] => Zend_Controller_Action
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 956Action
                        )

                )

            [12] => Array
                (
                    [file] => /library/Zend/Controller/Front.php
                    [line] => 932
                    [function] => dispatch
                    [class] => Zend_Controller_Dispatcher_Standard
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Zend_Controller_Request_Http Object
                                (
                                    [_requestUri:protected] => /produkty/956/
                                    [_baseUrl:protected] => 
                                    [_basePath:protected] => 
                                    [_pathInfo:protected] => /produkty/956/
                                    [_params:protected] => Array
                                        (
                                            [controller] => index
                                            [action] => 956
                                            [page_acro] => produkty
                                            [segments] => Array
                                                (
                                                    [0] => 
                                                )

                                            [params] => Array
                                                (
                                                    [] => 
                                                )

                                        )

                                    [_aliases:protected] => Array
                                        (
                                        )

                                    [_dispatched:protected] => 1
                                    [_module:protected] => default
                                    [_moduleKey:protected] => module
                                    [_controller:protected] => index
                                    [_controllerKey:protected] => controller
                                    [_action:protected] => 956
                                    [_actionKey:protected] => action
                                )

                            [1] => Zend_Controller_Response_Http Object
                                (
                                    [_body:protected] => Array
                                        (
                                        )

                                    [_exceptions:protected] => Array
                                        (
                                        )

                                    [_headers:protected] => Array
                                        (
                                        )

                                    [_headersRaw:protected] => Array
                                        (
                                        )

                                    [_httpResponseCode:protected] => 200
                                    [_isRedirect:protected] => 
                                    [_renderExceptions:protected] => 
                                    [headersSentThrowsException] => 1
                                )

                        )

                )

            [13] => Array
                (
                    [file] => /html/index.php
                    [line] => 72
                    [function] => dispatch
                    [class] => Zend_Controller_Front
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

        )

)