Database error
------
SQL: SELECT `question_id`, `unverified_modify`, FROM nz_question WHERE unverified_modify IS NOT NULL AND unverified_modify <> "a:0:{}"
Error Message: Mysqli prepare 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 'FROM nz_question WHERE unverified_modify IS NOT NULL AND unverified_modify <> "a' at line 1
已经自行查找解决!在托管平台看到了!
-//$question_list = $this->model('question')->fetch_all('question', 'unverified_modify IS NOT NULL AND unverified_modify <> "a:0:{}"');
-$question_list = $this->model('question')->query_all('SELECT `question_id`, `unverified_modify`, FROM ' . get_table('question') . ' WHERE unverified_modify IS NOT NULL AND unverified_modify <> "a:0:{}"');
+$question_list = $this->model('question')->query_all('SELECT `question_id`, `unverified_modify` FROM ' . get_table('question') . ' WHERE unverified_modify IS NOT NULL AND unverified_modify <> "a:0:{}"');
阅读全文
收起全文