The thread is resolved and I don't wana bother too much, but it's something that I'm not getting in here!
You have 2 fields, one rating and one votes, right? Let's see if I got what they really do. For example you have tip A that 2 ppl rated, so, your rating number is 2, right? And then let's say the first person put 3 stars for your tip, and the 2nd person put 5 starts for it, so, your votes field is gonna be (5+3)/2 = 4, right?
If I'm right, then you don't even need to use that rating field, because you can change it with:
SELECT count(votes) as num_of_votes, (num_of_votes/votes) as ratings FROM tips ORDER BY ratings DESC
Note: I renamed "rating" to "num_of_votes", it's more beautiful.
Lemme know if I was right!