Adjust Serialized RMA query

Duplicates lines were generated, this should not be possible with
serialized RMA's, so the 'distinct' keyword was added.