我想知道另一个语法错误:
SELECT * FROM forum_question
WHERE category='art'
LEFT JOIN forum_answer ON (forum_question.id = forum_answer.question_id)
GROUP BY forum_question.id
ORDER BY a_datetime DESC;
我得到的错误是:
您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的“LEFT JOIN forum_answer ON (forum_question.id = forum_answer.question_id) GROUP B”附近使用正确的语法
谢谢。