Invalid query: No database selected



SELECT u_id FROM bhost_users where username = 'poesiedamour'

Array
(
    [0] => Array
        (
            [file] => /var/www/bloguez.com/include/sql.php
            [line] => 73
            [function] => runSql
            [args] => Array
                (
                    [0] => SELECT u_id FROM bhost_users where username = 'poesiedamour'
                    [1] => 
                    [2] => 
                )

        )

    [1] => Array
        (
            [file] => /var/www/bloguez.com/functions.php
            [line] => 23
            [function] => getRow
            [args] => Array
                (
                    [0] => SELECT u_id FROM bhost_users where username = 'poesiedamour'
                )

        )

    [2] => Array
        (
            [file] => /var/www/bloguez.com/app/promo/video/index_view.php
            [line] => 4
            [function] => getUserIDFromUsername
            [args] => Array
                (
                    [0] => poesiedamour
                )

        )

    [3] => Array
        (
            [file] => /var/www/bloguez.com/app/promo/video/index.php
            [line] => 21
            [args] => Array
                (
                    [0] => /var/www/bloguez.com/app/promo/video/index_view.php
                )

            [function] => require
        )

)

Invalid query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1



SELECT * FROM bloguez.bhost_users WHERE u_id=

Array
(
    [0] => Array
        (
            [file] => /var/www/bloguez.com/include/sql.php
            [line] => 73
            [function] => runSql
            [args] => Array
                (
                    [0] => SELECT * FROM bloguez.bhost_users WHERE u_id=
                    [1] => 1
                    [2] => 
                )

        )

    [1] => Array
        (
            [file] => /var/www/bloguez.com/include/bloghelper.php
            [line] => 29
            [function] => getRow
            [args] => Array
                (
                    [0] => SELECT * FROM bloguez.bhost_users WHERE u_id=
                    [1] => 1
                )

        )

    [2] => Array
        (
            [file] => /var/www/bloguez.com/app/promo/video/index_view.php
            [line] => 4
            [function] => getUserInfo
            [args] => Array
                (
                    [0] => 
                )

        )

    [3] => Array
        (
            [file] => /var/www/bloguez.com/app/promo/video/index.php
            [line] => 21
            [args] => Array
                (
                    [0] => /var/www/bloguez.com/app/promo/video/index_view.php
                )

            [function] => require
        )

)