Discuz! info: MySQL Query Error

Time: 2018-2-21 12:52pm
Script: /bbs/space.php

SQL: SELECT t.tid, t.subject, t.special, t.price, t.fid, t.views, t.replies, t.author, t.authorid, t.lastpost, t.lastposter, t.attachment, p.pid, p.message FROM [Table]mythreads m INNER JOIN [Table]posts p ON p.tid=m.tid AND p.first='1'
INNER JOIN [Table]threads t ON t.blog='0' AND t.authorid='5040' AND t.author!='' AND t.price='0' AND t.fid IN (0,1,74,19,18,48,30,43,46,72,51,66,75) AND t.displayorder>='0' AND t.readperm<='2'
WHERE m.uid='5040' AND m.tid=t.tid ORDER BY t.lastpost DESC LIMIT 10
Error: Unknown column 't.blog' in 'on clause'
Errno.: 1054