Custom Filters generally only create a "Where" or "Order By" for the given data source.
So if you get an Invalid Column, the issue is probably in your Data Source or the thing you are filtering, not the filter itself.
What web part are you "filtering" and are you setting the Class Names in them?