undefined function wp_get_the_attachment_link()

Hi,

Within my blog posts if you click on any of the images you get the following error:

Fatal error: Call to undefined function wp_get_the_attachment_link() in .../blog/wp-content/themes/bp-daily/library/functions/loop-functions.php on line 225

Versions:
Wordpress: 3.3.2
BuddyPress Daily Child 4.1.7

We do use Edgecast CDN with W3 Total Cache.

To see this go to the following and click on an image:

http://blog.coastradar.com/2012/05/best-surfing-beaches-in-the-world/

Any clues as I can't see anything obvious.

Thanks, Ian