So, to completely understand.
Make sure that we help you with what really seems to be your problem…
You are trying to make a calculation work?
login is a column in your table?
login really exists and has a value?
Please, please be more specific!!!
Many on the forum, if not all, try to help you voluntarily.
So help us to help you by asking a question instead of making a puzzle…