Warning: PDOStatement::execute(): MySQL server has gone away in /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php on line 32

Warning: PDOStatement::execute(): Error reading result set's header in /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php on line 32
    PDOException Object
(
    [message:protected] => SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
    [string:Exception:private] => 
    [code:protected] => HY000
    [file:protected] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
    [line:protected] => 32
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
                    [line] => 32
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )

                )

            [1] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/index.php
                    [line] => 17
                    [function] => query
                    [class] => mysqldatabase
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SET NAMES 'utf8';
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => HY000
            [1] => 2006
            [2] => MySQL server has gone away
        )

)
			
    PDOException Object
(
    [message:protected] => SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
    [string:Exception:private] => 
    [code:protected] => HY000
    [file:protected] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
    [line:protected] => 32
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
                    [line] => 32
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [time] => 1529653497
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.session.php
                    [line] => 26
                    [function] => query
                    [class] => mysqldatabase
                    [type] => ->
                    [args] => Array
                        (
                            [0] => DELETE FROM `session` WHERE (`time` < :time)
                            [1] => Array
                                (
                                    [time] => 1529653497
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.user.php
                    [line] => 76
                    [function] => purge
                    [class] => session
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

            [3] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/index.php
                    [line] => 35
                    [function] => init
                    [class] => user
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => HY000
            [1] => 2006
            [2] => MySQL server has gone away
        )

)
			
    PDOException Object
(
    [message:protected] => SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
    [string:Exception:private] => 
    [code:protected] => HY000
    [file:protected] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
    [line:protected] => 32
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
                    [line] => 32
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [url] => ru/aktobe/blog
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.meta.php
                    [line] => 34
                    [function] => query
                    [class] => mysqldatabase
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT * FROM `meta` WHERE (`url` = :url)
                            [1] => Array
                                (
                                    [url] => ru/aktobe/blog
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.meta.php
                    [line] => 22
                    [function] => getByUrl
                    [class] => meta
                    [type] => ::
                    [args] => Array
                        (
                            [0] => ru/aktobe/blog
                        )

                )

            [3] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/index.php
                    [line] => 47
                    [function] => init
                    [class] => meta
                    [type] => ::
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => HY000
            [1] => 2006
            [2] => MySQL server has gone away
        )

)
			
    PDOException Object
(
    [message:protected] => SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
    [string:Exception:private] => 
    [code:protected] => HY000
    [file:protected] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
    [line:protected] => 32
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.mysqldatabase.php
                    [line] => 32
                    [function] => execute
                    [class] => PDOStatement
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [alias] => aktobe
                                )

                        )

                )

            [1] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.entity.php
                    [line] => 54
                    [function] => query
                    [class] => mysqldatabase
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT * FROM `city` WHERE `alias` = :alias
                            [1] => Array
                                (
                                    [alias] => aktobe
                                )

                            [2] => city Object
                                (
                                    [title] => 
                                    [alias] => 
                                    [ordering] => 0
                                    [id] => 
                                )

                        )

                )

            [2] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/classes/class.city.php
                    [line] => 13
                    [function] => getByAlias
                    [class] => entity
                    [type] => ->
                    [args] => Array
                        (
                            [0] => aktobe
                        )

                )

            [3] => Array
                (
                    [file] => /home/users/s/smusainov/domains/grr.kz/index.php
                    [line] => 67
                    [function] => __construct
                    [class] => city
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => aktobe
                        )

                )

        )

    [previous:Exception:private] => 
    [errorInfo] => Array
        (
            [0] => HY000
            [1] => 2006
            [2] => MySQL server has gone away
        )

)
			

Fatal error: Call to a member function fetch() on null in /home/users/s/smusainov/domains/grr.kz/classes/class.entity.php on line 56