Actually I have been trying different things and I think I have got the error
Warning: mysql_free_result(): 4 is not a valid MySQL result resource in C:\wamp\www\KittyCatSpace\PublicPhotosProfilePages\PublicPhotosProfilePage.php on line 252
Warning: mysql_free_result(): 5 is not a valid MySQL result resource in C:\wamp\www\KittyCatSpace\PublicPhotosProfilePages\PublicPhotosProfilePage.php on line 254
Not sure what this means