Paul
I can confirm that code runs properly in 2.6.
So most likely there is either an issue with the copying of the code (does it produce an error message?) or there is an issue with the original data source (is there data in the scorm_scoes_track table?)
If the latter, this simple query will just show you the data there:
SELECT
st.id,
st.userid,
st.scormid,
sc.name AS scormname,
st.attempt,
st.value,
st.timemodified
FROM prefix_scorm_scoes_track AS st
JOIN prefix_scorm AS sc ON sc.id=st.scormid