GUI: fixed SQL in check for similar users