I have gone through several times, however I'm unable to understand why this error is getting.
Discussion posts and replies are publicly visible
The issue is, that you true to compare a list of integers to a single field in DB. This is what the error message tries to tell you.
[TypedValue[it=101,v={1}]]
The curly brackets indicate a list.
So, you can either use the "in" operator to compare, or make sure that this getVendorId expression returns only a single. The index() function might help you in doing that.