I found a small typo:
Code:
######
#Find#
######
SELECT $previewfield
thread.threadid, thread.threadid AS postid, thread.title AS threadtitle, thread.iconid AS threadiconid,
thread.replycount, IF(thread.views=0, thread.replycount+1, thread.views) as views, thread.sticky,
thread.pollid, thread.open, thread.lastpost AS postdateline,
thread.lastpost, thread.lastposter, thread.attach, thread.postusername, thread.forumid,
#################
#Add right after#
#################
thread.threaddesc
Insated of:
thread.threaddesc
it should be
thread.threaddesc,
Otherwise you'll get db errors.