Exception Object
(
    [message:protected] => SQL query failed.No database selected
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /home/appoin7/public_html/app/system/helper/Db.php
    [line:protected] => 100
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /home/appoin7/public_html/app/system/helper/Db.php
                    [line] => 252
                    [function] => query
                    [class] => Db
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SHOW COLUMNS FROM `loyalty_enroll`
                        )

                )

            [1] => Array
                (
                    [file] => /home/appoin7/public_html/app/system/Model_Base.php
                    [line] => 231
                    [function] => table_info
                    [class] => Db
                    [type] => ->
                    [args] => Array
                        (
                            [0] => loyalty_enroll
                        )

                )

            [2] => Array
                (
                    [file] => /home/appoin7/public_html/app/framework/model/User.php
                    [line] => 18
                    [function] => has_many
                    [class] => Model_Base
                    [type] => ->
                    [args] => Array
                        (
                            [0] => loyalty_enroll
                        )

                )

            [3] => Array
                (
                    [file] => /home/appoin7/public_html/app/system/Framework.php
                    [line] => 195
                    [function] => __construct
                    [class] => User
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [4] => Array
                (
                    [file] => /home/appoin7/public_html/app/system/Controller_Base.php
                    [line] => 23
                    [function] => load_model
                    [class] => Framework
                    [type] => ->
                    [args] => Array
                        (
                            [0] => User
                        )

                )

            [5] => Array
                (
                    [file] => /home/appoin7/public_html/app/framework/controller/Home.php
                    [line] => 8
                    [function] => __construct
                    [class] => Controller_Base
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [6] => Array
                (
                    [file] => /home/appoin7/public_html/app/system/Framework.php
                    [line] => 255
                    [function] => __construct
                    [class] => Home_Controller
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [7] => Array
                (
                    [file] => /home/appoin7/public_html/app/system/Framework.php
                    [line] => 122
                    [function] => load_controller
                    [class] => Framework
                    [type] => ->
                    [args] => Array
                        (
                            [0] => home
                            [1] => stdClass Object
                                (
                                    [request] => Config_Builder Object
                                        (
                                            [vars] => 
                                            [controller_name] => Home
                                            [method_name] => index
                                            [raw] => Array
                                                (
                                                    [0] => 
                                                )

                                        )

                                )

                        )

                )

            [8] => Array
                (
                    [file] => /home/appoin7/public_html/app/index.php
                    [line] => 12
                    [function] => route
                    [class] => Framework
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

        )

    [previous:Exception:private] => 
)