Yes, it's kind of tricky with only one tag in the tags table. While your query works in this instance, it would return all tags, albeit in order, if the table had more tags in it. All you needed to add with a "DESC qualifier to the "ORDER BY" clause and a "LIMIT" clause at the end, so only one record, the one with the maximum status id count, was returned.