我的SQL查询出了问题。我一直在试图从SQL一些数据,但似乎我在什么地方失败了,我无法找到它MySQL查询语法错误:1064 - 您的SQL语法错误;
SELECT user_comments.*,
users.ID AS user_ID,
users.username AS user_username,
profiles.userID AS profiles_ID
INNER JOIN users ON users.username = user_comments.author
INNER JOIN profiles ON profiles.userID = users.ID
WHERE user_comments.img_id = 'b75962591b38b117b45d'
和错误是
1064 - 你有一个错误在你的SQL语法中;检查对应于你的MySQL服务器版本的手册正确的语法使用
附近“INNER JOIN用户ON users.username = user_comments.author INNER JOIN教授”在5号线
** FROM user_comments **在第一次加入之前丢失 –