No, i was said that your if condition will return true everytime and that's why you have duplicate entries.
PHP Code:
SQL_ReadResult(Query, 0)
is reading the first value selected from your table, has nothing to do with the other if statement, and if you search only by steamid then use this -
Code:
SELECT money FROM furienmoney WHERE steamid = '%s'
And this it must to be executed in a proper function with the correct steamid to work.