clean URL's changes yoursite.com/index.php?a=stats&u=something
Into:
yoursite.com/stats/something
button links have nothing to do with clean URL's, if your referring to W3c validation you most likely have unencoded ampersands in the path. If that is the case, replace & with &