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 1array(3) {
[0]=>
array(7) {
["file"]=>
string(52) "/home/pickjack/public_html/question_details_ajax.php"
["line"]=>
int(29)
["function"]=>
string(5) "query"
["class"]=>
string(2) "db"
["type"]=>
string(2) "->"
["object"]=>
object(db)#10 (9) {
["arr"]=>
array(0) {
}
["fields"]=>
array(0) {
}
["grid"]=>
bool(false)
["conn"]=>
resource(13) of type (mysql link)
["paging"]=>
bool(true)
["totalrecords"]=>
string(3) "353"
["records"]=>
string(0) ""
["query"]=>
string(0) ""
["result"]=>
bool(false)
}
["args"]=>
array(1) {
[0]=>
&string(33) "select * from users where userid="
}
}
[1]=>
array(4) {
["file"]=>
string(45) "/home/pickjack/public_html/includes/funcs.php"
["line"]=>
int(853)
["args"]=>
array(1) {
[0]=>
string(52) "/home/pickjack/public_html/question_details_ajax.php"
}
["function"]=>
string(7) "include"
}
[2]=>
array(4) {
["file"]=>
string(47) "/home/pickjack/public_html/question_details.php"
["line"]=>
int(16)
["function"]=>
string(11) "ajax_onload"
["args"]=>
array(1) {
[0]=>
&string(38) "question_details_ajax.php?pollid=15822"
}
}
}