SQL against COMP fields returns seemingly incorrect values