Sorry for the delay...I'm on a two way satellite and I think 'Mars Attacked' I 'rated' another dozen or so threads and for some reason was only receiving 1 top result - and I had at least 5 different ratings. $totalratedposts = 10; should have been fine? Perhaps it was just being grumpy.
Now, removing the line you recommended (I believe correctly) leaves:
SELECT B_Number,B_Posted,B_Last_Post,B_Username,B_Subject,B_Main,B_Replies,B_Counter,B_Board,B_Rates,B_RealRating FROM w3t_Posts WHERE B_Number = B_Main AND B_Last_Post > '$date' $boardquery ORDER BY B_RealRating DESC LIMIT $totalratedposts
and I now have 10 threads listed, however 8 of them are not rated and they're the 'sticky' ones that have been hit thousands of times. Weird.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.