Fixed where condition for backend view