Solved user filter with SQL optimized