Discuz! Database Error

(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 'group by i.attachment limit 30' at line 3
SELECT b.*,i.attachment FROM common_tagitem AS a LEFT JOIN common_tagitem AS b ON a.tagid=b.tagid RIGHT JOIN forum_threadimage AS i ON i.tid=b.itemid WHERE a.itemid= group by i.attachment limit 30

PHP Debug

No.FileLineCode
1forum.php53runhooks()
2source/function/function_core.php1066hookscript(%s, %s, %s, Array, %s, %s)
3source/function/function_core.php1110plugin_ThreadImagesShow_forum->viewthread_modaction(Array)
4source/plugin/ThreadImagesShow/ThreadImagesShow.class.php17discuz_database::query(%s)
5source/class/discuz/discuz_database.php136db_driver_mysql->query(%s, false, false)
6source/class/db/db_driver_mysql.php151db_driver_mysql->halt(%s, %d, %s)
7source/class/db/db_driver_mysql.php218break()
bbs.chaoxiaolv.com 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意. Need Help?