NameSilo

URGENT! Sudden MySQL Errors

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Tree

Established Member
Impact
9
I upgraded from MySQL 4.0.25 to MySQL 4.1. Now I am getting errors such as:

Code:
mySQL query error: SELECT mod.mid as is_mod, mod.allow_warn, m.id, m.name, m.mgroup, m.password, m.email, m.restrict_post, m.view_sigs, m.view_avs, m.view_pop, m.view_img, m.auto_track,
						 m.mod_posts, m.language, m.skin, m.new_msg, m.show_popup, m.msg_total, m.time_offset, m.posts, m.joined, m.last_post,
						 m.last_visit, m.last_activity, m.dst_in_use, m.view_prefs, m.org_perm_id, m.temp_ban, m.sub_end, g.*
						FROM ibf_members m
						 LEFT JOIN ibf_groups g ON (g.g_id=m.mgroup)
						 LEFT JOIN ibf_moderators mod ON (mod.member_id=m.id OR mod.group_id=m.mgroup)
						WHERE m.id=1

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 'mod ON (mod.member_id=m.id OR mod.group_id=m.mgroup)
						WHERE m.id=1' at line 6
mySQL error code: 
Date: Saturday 25th of March 2006 05:55:07 PM

How can I fix this?
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
From the error message I would guess mysql does not like your left join clause (OR)
(mod.member_id=m.id OR mod.group_id=m.mgroup)
I would try to reformulate the condition in a where clause.
 
0
Close
This is actually a client of mine, and this is occuring on his IPB 1.0 board.
 
0
Close
If you post the table structure and some data I could try on my test platform (MySQL 4.1.18)
 
0
Close
We're just going to move the client to another server that does not have 4.1 on it.

If you search Google with that error, you'll find out that IPB 1 just doesn't support 4.1.
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back