I have verified that the modifications work great.
in custom-query-string.php I changed the following text (just search in Vi for “cat_ID” and you’ll find it):
SELECT cat_ID FROM $wpdb->categories WHERE category_nicename =
to…
SELECT term_id FROM $wpdb->terms WHERE slug =
That has worked well on my blog and I have had no problems whatsoever.