In my PHP application, I have a mysql table of articles which has the following columns:
article_id articletext category_id score
Your naive solution is exactly what I would do.