I am trying to get the database to query and only show me one row which is determined by an if statement. I can't however get to that stage without first being able to get it to not take the first result it sees.I am trying to get the database to query and on