MySiteGuy
Well-known member
- Affected version
- 1.3.1
Code:
SELECT thread.*,
IF(user.username IS NULL, thread.postusername, user.username) AS postusername
deletionlog.userid AS deleteuserid,
deletionlog.username AS deleteusername,
deletionlog.reason AS deletereason,
deletionlog.dateline AS deletedate
FROM vb_thread AS
thread
LEFT JOIN vb_user AS
user ON (user.userid = thread.postuserid)
LEFT JOIN vb_deletionlog AS
deletionlog ON (deletionlog.primaryid = thread.threadid AND deletionlog.type = 'thread')
INNER JOIN vb_forum AS
forum ON (forum.forumid = thread.forumid AND forum.link = '' AND forum.options & 4)
WHERE thread.threadid > ? AND thread.threadid <= ?
AND thread.open <> 10
ORDER BY thread.threadid
LIMIT 1000;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'deletionlog.userid AS deleteuserid,
deletionlog.' at line 3