Array
(
    [0] => Array
        (
            [file] => /home/webs/www.clker.com/inc/conf.php
            [line] => 107
            [function] => query
            [args] => Array
                (
                    [0] => select * from users where userkey=
                )

        )

    [1] => Array
        (
            [file] => /home/webs/www.clker.com/inc/userinfo.php
            [line] => 11
            [function] => query_row
            [args] => Array
                (
                    [0] => select * from users where userkey=
                )

        )

    [2] => Array
        (
            [file] => /home/webs/www.clker.com/item2.php
            [line] => 55
            [function] => UserRow
            [args] => Array
                (
                    [0] => 
                )

        )

)
PgSQL ERROR: ERROR:  syntax error at end of input
LINE 1: select * from users where userkey=
                                          ^ SQL is: select * from users where userkey=