Added sharing in where condition