Added SQL override for the where clause in the criteria