array_values() expects parameter 1 to be array, boolean given

Array
(
    [0] => Array
        (
            [function] => custom_warning_handler
            [args] => Array
                (
                    [0] => 2
                    [1] => array_values() expects parameter 1 to be array, boolean given
                    [2] => /var/www/clients/client35/web47/web/apps/standard/classes/news.class.php
                    [3] => 74
                    [4] => Array
                        (
                            [newsid] => 81
                            [result] => 
                            [sql] => SELECT news.*, newsdescription.string as description, newsdescription.lang, newstitle.string as title, newstitle.lang FROM news LEFT JOIN newsdescription ON news.id = newsdescription.newsid LEFT JOIN newstitle ON news.id = newstitle.newsid WHERE newstitle.lang = newsdescription.lang AND news.id = "81"
                            [binding] => title
                            [data] => Array
                                (
                                    [table] => title
                                    [update] => 1
                                    [key] => Array
                                        (
                                            [id] => newsid
                                        )

                                    [data] => Array
                                        (
                                            [key] => lang
                                            [value] => string
                                        )

                                )

                            [res] => Resource id #77
                            [row] => 
                        )

                )

        )

    [1] => Array
        (
            [file] => /var/www/clients/client35/web47/web/apps/standard/classes/news.class.php
            [line] => 74
            [function] => array_values
            [args] => Array
                (
                    [0] => 
                )

        )

    [2] => Array
        (
            [file] => /var/www/clients/client35/web47/web/apps/site/modules/news.php
            [line] => 9
            [function] => getById
            [class] => News
            [object] => News Object
                (
                    [table:protected] => news
                    [bindings:News:private] => Array
                        (
                            [description] => Array
                                (
                                    [table] => description
                                    [update] => 1
                                    [key] => Array
                                        (
                                            [id] => newsid
                                        )

                                    [data] => Array
                                        (
                                            [key] => lang
                                            [value] => string
                                        )

                                )

                            [title] => Array
                                (
                                    [table] => title
                                    [update] => 1
                                    [key] => Array
                                        (
                                            [id] => newsid
                                        )

                                    [data] => Array
                                        (
                                            [key] => lang
                                            [value] => string
                                        )

                                )

                        )

                    [collection] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => 81
                )

        )

    [3] => Array
        (
            [file] => /var/www/clients/client35/web47/web/index.php
            [line] => 55
            [args] => Array
                (
                    [0] => /var/www/clients/client35/web47/web/apps/site/modules/news.php
                )

            [function] => require_once
        )

)

array_shift() expects parameter 1 to be array, null given

Array
(
    [0] => Array
        (
            [function] => custom_warning_handler
            [args] => Array
                (
                    [0] => 2
                    [1] => array_shift() expects parameter 1 to be array, null given
                    [2] => /var/www/clients/client35/web47/web/apps/standard/classes/news.class.php
                    [3] => 74
                    [4] => Array
                        (
                            [newsid] => 81
                            [result] => 
                            [sql] => SELECT news.*, newsdescription.string as description, newsdescription.lang, newstitle.string as title, newstitle.lang FROM news LEFT JOIN newsdescription ON news.id = newsdescription.newsid LEFT JOIN newstitle ON news.id = newstitle.newsid WHERE newstitle.lang = newsdescription.lang AND news.id = "81"
                            [binding] => title
                            [data] => Array
                                (
                                    [table] => title
                                    [update] => 1
                                    [key] => Array
                                        (
                                            [id] => newsid
                                        )

                                    [data] => Array
                                        (
                                            [key] => lang
                                            [value] => string
                                        )

                                )

                            [res] => Resource id #77
                            [row] => 
                        )

                )

        )

    [1] => Array
        (
            [file] => /var/www/clients/client35/web47/web/apps/standard/classes/news.class.php
            [line] => 74
            [function] => array_shift
            [args] => Array
                (
                    [0] => 
                )

        )

    [2] => Array
        (
            [file] => /var/www/clients/client35/web47/web/apps/site/modules/news.php
            [line] => 9
            [function] => getById
            [class] => News
            [object] => News Object
                (
                    [table:protected] => news
                    [bindings:News:private] => Array
                        (
                            [description] => Array
                                (
                                    [table] => description
                                    [update] => 1
                                    [key] => Array
                                        (
                                            [id] => newsid
                                        )

                                    [data] => Array
                                        (
                                            [key] => lang
                                            [value] => string
                                        )

                                )

                            [title] => Array
                                (
                                    [table] => title
                                    [update] => 1
                                    [key] => Array
                                        (
                                            [id] => newsid
                                        )

                                    [data] => Array
                                        (
                                            [key] => lang
                                            [value] => string
                                        )

                                )

                        )

                    [collection] => 
                )

            [type] => ->
            [args] => Array
                (
                    [0] => 81
                )

        )

    [3] => Array
        (
            [file] => /var/www/clients/client35/web47/web/index.php
            [line] => 55
            [args] => Array
                (
                    [0] => /var/www/clients/client35/web47/web/apps/site/modules/news.php
                )

            [function] => require_once
        )

)
Teatr.lv