Why don't you just use 'ClientVersion' as a comparison?
you shouldn't need to access the db for this info since it a Client class property already.
Code:
if (tradee && tradee->IsClient() && (this.ClientVersion == tradee->CastToClient()->GetClientVersion()))
{ ... }
..or something like that...