Database Error
: 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
array(6) {
[0]=>
array(7) {
["file"]=>
string(47) "/boinc/projects/docking/html_v2/inc/db_conn.inc"
["line"]=>
int(50)
["function"]=>
string(8) "do_query"
["class"]=>
string(6) "DbConn"
["object"]=>
object(DbConn)#2 (2) {
["db_conn"]=>
resource(38) of type (mysql link persistent)
["db_name"]=>
string(7) "docking"
}
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&string(35) "select * from DBNAME.user where id="
}
}
[1]=>
array(7) {
["file"]=>
string(47) "/boinc/projects/docking/html_v2/inc/db_conn.inc"
["line"]=>
int(60)
["function"]=>
string(6) "lookup"
["class"]=>
string(6) "DbConn"
["object"]=>
object(DbConn)#2 (2) {
["db_conn"]=>
resource(38) of type (mysql link persistent)
["db_name"]=>
string(7) "docking"
}
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
&string(4) "user"
[1]=>
&string(9) "BoincUser"
[2]=>
&string(3) "id="
}
}
[2]=>
array(7) {
["file"]=>
string(48) "/boinc/projects/docking/html_v2/inc/boinc_db.inc"
["line"]=>
int(66)
["function"]=>
string(9) "lookup_id"
["class"]=>
string(6) "DbConn"
["object"]=>
object(DbConn)#2 (2) {
["db_conn"]=>
resource(38) of type (mysql link persistent)
["db_name"]=>
string(7) "docking"
}
["type"]=>
string(2) "->"
["args"]=>
array(3) {
[0]=>
&NULL
[1]=>
&string(4) "user"
[2]=>
&string(9) "BoincUser"
}
}
[3]=>
array(6) {
["file"]=>
string(48) "/boinc/projects/docking/html_v2/inc/boinc_db.inc"
["line"]=>
int(70)
["function"]=>
string(17) "lookup_id_nocache"
["class"]=>
string(9) "BoincUser"
["type"]=>
string(2) "::"
["args"]=>
array(1) {
[0]=>
&NULL
}
}
[4]=>
array(6) {
["file"]=>
string(42) "/boinc/projects/docking/html_v2/inc/db.inc"
["line"]=>
int(42)
["function"]=>
string(9) "lookup_id"
["class"]=>
string(9) "BoincUser"
["type"]=>
string(2) "::"
["args"]=>
array(1) {
[0]=>
&NULL
}
}
[5]=>
array(4) {
["file"]=>
string(60) "/boinc/projects/docking/html_v2/user/community/show_user.php"
["line"]=>
int(57)
["function"]=>
string(14) "lookup_user_id"
["args"]=>
array(1) {
[0]=>
&NULL
}
}
}
query: select * from docking.user where id=