致命错误:未捕获错误:调用未定义的方法 Database :: resultset()in C:\ xampp \ htdocs \ askit \ libraries \ Subject.php:24堆栈跟踪:#0 C:\ xampp \ htdocs \ askit \ index.php(13):Subject-> getAllTopics()#1 {main} 在第24行的C:\ xampp \ htdocs \ askit \ libraries \ Subject.php中抛出
答案 0 :(得分:0)
尝试将semicolon
放在查询的末尾。
SELECT topics.*, users.username, users.profilepic, catogories.name
FROM topics
INNER JOIN users ON topics.user_id = users.id
INNER JOIN catogories ON topics.catogory_id = catogories.id
ORDER BY create_date DESC;