DB Error: no database selecteddb_error Object
(
    [error_message_prefix] => 
    [mode] => 16
    [level] => 1024
    [code] => -14
    [message] => DB Error: no database selected
    [userinfo] => SELECT count(ou.userid) as onlineusers FROM osdate_onlineusers ou, osdate_user as user where ou.userid <> ifnull(NULL,-1) and ou.userid = user.id and user.allow_viewonline = '1'  [nativecode=2002 ** Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]
    [backtrace] => Array
        (
            [0] => Array
                (
                    [file] => /home/ethical/public_html/contacts/libs/Pear/DB.php
                    [line] => 748
                    [function] => pear_error
                    [class] => db_error
                    [type] => ->
                    [args] => Array
                        (
                            [0] => DB Error: no database selected
                            [1] => -14
                            [2] => 16
                            [3] => errhndl
                            [4] => SELECT count(ou.userid) as onlineusers FROM osdate_onlineusers ou, osdate_user as user where ou.userid <> ifnull(NULL,-1) and ou.userid = user.id and user.allow_viewonline = '1'  [nativecode=2002 ** Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]
                        )

                )

            [1] => Array
                (
                    [file] => /home/ethical/public_html/contacts/libs/Pear/PEAR.php
                    [line] => 539
                    [function] => db_error
                    [class] => db_error
                    [type] => ->
                    [args] => Array
                        (
                            [0] => -14
                            [1] => 16
                            [2] => errhndl
                            [3] => SELECT count(ou.userid) as onlineusers FROM osdate_onlineusers ou, osdate_user as user where ou.userid <> ifnull(NULL,-1) and ou.userid = user.id and user.allow_viewonline = '1'  [nativecode=2002 ** Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]
                        )

                )

            [2] => Array
                (
                    [file] => /home/ethical/public_html/contacts/libs/Pear/DB/common.php
                    [line] => 501
                    [function] => raiseerror
                    [class] => pear
                    [type] => ::
                    [args] => Array
                        (
                            [0] => 
                            [1] => -14
                            [2] => 
                            [3] => 
                            [4] => SELECT count(ou.userid) as onlineusers FROM osdate_onlineusers ou, osdate_user as user where ou.userid <> ifnull(NULL,-1) and ou.userid = user.id and user.allow_viewonline = '1'  [nativecode=2002 ** Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]
                            [5] => DB_Error
                            [6] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /home/ethical/public_html/contacts/libs/Pear/DB/mysql.php
                    [line] => 775
                    [function] => raiseerror
                    [class] => db_mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => -14
                            [1] => 
                            [2] => 
                            [3] => 
                            [4] => 2002 ** Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
                        )

                )

            [4] => Array
                (
                    [file] => /home/ethical/public_html/contacts/libs/Pear/DB/mysql.php
                    [line] => 212
                    [function] => mysqlraiseerror
                    [class] => db_mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => -14
                        )

                )

            [5] => Array
                (
                    [file] => /home/ethical/public_html/contacts/libs/Pear/DB/common.php
                    [line] => 954
                    [function] => simplequery
                    [class] => db_mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT count(ou.userid) as onlineusers FROM osdate_onlineusers ou, osdate_user as user where ou.userid <> ifnull(NULL,-1) and ou.userid = user.id and user.allow_viewonline = '1' 
                        )

                )

            [6] => Array
                (
                    [file] => /home/ethical/public_html/contacts/libs/Pear/DB/common.php
                    [line] => 1212
                    [function] => execute
                    [class] => db_mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 30
                            [1] => Array
                                (
                                    [0] => osdate_onlineusers
                                    [1] => osdate_user
                                    [2] => 
                                    [3] => 1
                                )

                        )

                )

            [7] => Array
                (
                    [file] => /home/ethical/public_html/contacts/init.php
                    [line] => 279
                    [function] => getone
                    [class] => db_mysql
                    [type] => ->
                    [args] => Array
                        (
                            [0] => SELECT count(ou.userid) as onlineusers FROM ! ou, ! as user where ou.userid <> ifnull(?,-1) and ou.userid = user.id and user.allow_viewonline = ? 
                            [1] => Array
                                (
                                    [0] => osdate_onlineusers
                                    [1] => osdate_user
                                    [2] => 
                                    [3] => 1
                                )

                        )

                )

            [8] => Array
                (
                    [file] => /home/ethical/public_html/contacts/onlineusers.php
                    [line] => 4
                    [args] => Array
                        (
                            [0] => /home/ethical/public_html/contacts/init.php
                        )

                    [function] => include_once
                )

        )

    [callback] => errhndl
)