SELECT cattable.*,user.username,user.userid,sort.S_name FROM px_cattable AS cattable LEFT JOIN px_user AS user ,px_article_sort AS sort ON cattable.sid=sort.S_id GROUP by sort.S_id ORDER BY cattable.id DESC
以前没有提示错误,能够正常运行,然后不知道怎么了(有可能是我升级了数据库或者其他什么了),就提示出错,出错信息如下:
错误提示:#1064 - 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 'px_article_sort AS sort ON cattable.sid=sort.S_id GROUP by sort.
谢谢大家帮我看看。