Solved user filter with SQL