If you want it to be a function, add a cfargument tag to that
function to accept the year. Make it numeric. Then, in your query,
replace the "2007" with #arguments.playeryear#.
Now, about those quotes. First, when submitting queries
through odbc/jbdc you single quotes, not double quotes. Secondly,
quotes only apply to char/varchar datatypes. Why would a field that
could only accept numbers not be numeric?
To run the query, put an anchor tag around the years with a
url variable. On the page that is linked to, call your function and
send the url variable as an argument.