PDA

View Full Version : 39 pages of MySQL errors.


KevinL
07-18-2005, 10:32 AM
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:
SELECT
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_items_user.*,
rpg_battle_stats.*,
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
,level,
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


*EDIT*
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.

Revan
07-29-2005, 12:28 PM
RTFF - Read The Fabulous FAQ, stickied in this forum.

Attilitus
08-05-2005, 05:22 PM
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?

Revan
08-05-2005, 05:40 PM
You edit the php file in which you are recieving the error.

Attilitus
08-05-2005, 05:49 PM
How would I find out what file it is in?

Revan
08-06-2005, 10:42 AM
By checking the Address Bar in your browser, sheesh.