Client was not declared in this scope

Variables, structs and class objects declared inside of a function are only seen inside of that function.
If the variable, etc, is not declared static then it will get wiped when the function ends.
The function has scope. Libraries have scope too.
One way around that is to use global variables, etc, that can be 'seen' by all the sketch.

Did you create client inside of loop()? Or is it a libraries conflict?