Try the following:
join='JOIN profile ON profile.id = t1.profileId';
If you do this: Ratings::model()->findAll($topRage)then the grading table is already requested, so you need to join the profiling table.
Edit:
for echo you will need to do this:
$echo "Rating id: ".$rating->id."| Profile Id: ".$rating->profile->id."| Profile Name: ".$rating->profile->name."| Rating: ".$rating->ratingvalue;
$rating .
find($topRage) findAll($topRage) limit, .