I get this mail, can you help me with it?
Database error in vBulletin 3.7.4:
Invalid SQL:
(
SELECT c.*,fromu.userid AS fromuserid,fromu.username AS fromusername,fromu.usergroupid AS fromusergroupid,fromu.displaygroupid AS fromdisplaygroupid,
tou.userid AS touserid,tou.username AS tousername,tou.usergroupid AS tousergroupid,tou.displaygroupid AS todisplaygroupid,
avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight,
customavatar.height_thumb AS avheight_thumb, customavatar.width_thumb AS avwidth_thumb, customavatar.filedata_thumb,
fromu.avatarid,fromu.avatarrevision
FROM mgc_cb_evo_chat AS c
LEFT JOIN user AS fromu ON (c.fromuid=fromu.userid)
LEFT JOIN user AS tou ON (c.touid=tou.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = fromu.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = fromu.userid)
WHERE (
chanid='0'
AND coidentifier IN ('0','me','announcement','pm','slap')
AND (touid='0' OR fromuid='2369'
OR touid='2369')
AND iswarning='0'
)
ORDER BY sticky DESC,c.dateline DESC
LIMIT 15
)
UNION ALL
(
SELECT c.*,fromu.userid AS fromuserid,fromu.username AS fromusername,fromu.usergroupid AS fromusergroupid,fromu.displaygroupid AS fromdisplaygroupid,
tou.userid AS touserid,tou.username AS tousername,tou.usergroupid AS tousergroupid,tou.displaygroupid AS todisplaygroupid,
avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight,
customavatar.height_thumb AS avheight_thumb, customavatar.width_thumb AS avwidth_thumb, customavatar.filedata_thumb,
fromu.avatarid,fromu.avatarrevision
FROM mgc_cb_evo_chat AS c
LEFT JOIN user AS fromu ON (c.fromuid=fromu.userid)
LEFT JOIN user AS tou ON (c.touid=tou.userid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = fromu.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = fromu.userid)
WHERE
ORDER BY sticky DESC,c.dateline DESC
LIMIT 20
);
MySQL 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 'ORDER BY sticky DESC,c.dateline DESC
LIMIT 20
)' at line 39
|