okay, i get the point and obviously I'll have to completely rework database (or make separate query for every [name], which is clumsy - I agree), no matter what users will say. As mentioned, from the beginning the whole db was set wrong, but it was the only way I could have done it.
Guys I...