The Elgg Community: Most viewed photos - Is the code correct?