Had to modify the query for mdr