For anyone who sees this who wants a summary of SC/AC differences…
Where() parameters are different client-side to server-side.
Client-side is: .where('propertyname',lookupvalue,'operator')
e.g. .where('membername', serverconnect.data.query.fname, '==')
On server-side the lookupvalue and operator are switched around: .where('propertyname','operator',lookupvalue)
e.g. .where('membername', '==' , query.fname)
I have also noticed the single quotes are another weird difference.
It sometimes uses regular single quotes ( ’ ), and other times the apostrophe ( ` ) style quote.