Removed unnecessary part of query