SQL: SELECT attach.aid, attach.attachment, t.tid, t.fid, t.subject FROM [Table]attachments attach LEFT JOIN [Table]threads t ON t.tid=attach.tid WHERE attach.readperm=0 AND t.displayorder>=0 AND attach.isimage=1 GROUP BY attach.tid ORDER BY rand() DESC LIMIT 0,
Error: 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 '' at line 1
Errno.: 1064
Similar error report has been dispatched to administrator before.