View Full Version : 39 pages of MySQL errors.

18 Jul 2005, 11:32
I just checked my mail and I have 39 pages of errors all from Unregistered users. I thought this error was fixed when I read the FAQ from this forum. Any ideas why this is happening?

This is the error:

Invalid SQL:
post.*, post.username AS postusername, post.ipaddress AS ip,
user.*, userfield.*, usertextfield.*,
userfield.field13 AS rpgname,
user.ma AS uma,user.hp AS uhp,user.pp AS upp,user.ap AS uap,
rpg_race.name AS rpgracename,
rpg_race.alignment AS rpgalignmentname,
rpg_class.name AS classname,
rpg_class.folder AS classfolder,
rpg_element.name AS elename,
rpg_clan.title AS clantitle,

icon.title as icontitle, icon.iconpath,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
,avatar.avatarpath, NOT ISNULL(customavatar.avatardata) AS hascustomavatar, customavatar.dateline AS avatardateline
NOT ISNULL(deletionlog.primaryid) AS isdeleted,
post_parsed.pagetext_html, post_parsed.hasimages
, '' AS field5
FROM post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN rpg_items_user AS rpg_items_user ON(rpg_items_user.userid=user.userid)
LEFT JOIN rpg_battle_stats AS rpg_battle_stats ON(rpg_battle_stats.userid=user.userid)
LEFT JOIN rpg_class AS rpg_class ON(rpg_class.id=user.rpgclass)
LEFT JOIN rpg_element AS rpg_element ON(rpg_element.elementid=user.element)
LEFT JOIN rpg_clan AS rpg_clan ON(rpg_clan.clanid=user.clan)
LEFT JOIN rpg_race AS rpg_race ON(rpg_race.raceid=user.rpgrace)
AND rpg_race.alignmentid=user.alignment

LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid) LEFT JOIN reputationlevel AS reputationlevel ON(user.reputationlevelid = reputationlevel.reputationlevelid)
LEFT JOIN deletionlog AS deletionlog ON(deletionlog.primaryid = post.postid AND type = 'post')
LEFT JOIN post_parsed AS post_parsed ON(post_parsed.postid = post.postid)
WHERE post.postid = 7680

mysql error: Column: 'type' in on clause is ambiguous

mysql error number: 1052

Another 54 pages of these errors! :laugh:

But its only on threads that my 'newsbot' posts. So Im thinking it has to do with the news bot posting.

29 Jul 2005, 13:28
RTFF - Read The Fabulous FAQ, stickied in this forum.

05 Aug 2005, 18:22
I'm getting the same error with the latest version of RPG hack and with vb 3.0.7


Also... I am a little oblivious to computer shiznatz... so would you mind telling me "How" I removed that Post = thing?

05 Aug 2005, 18:40
You edit the php file in which you are recieving the error.

05 Aug 2005, 18:49
How would I find out what file it is in?

06 Aug 2005, 11:42
By checking the Address Bar in your browser, sheesh.