Please, tell me the results of running these queries:
SELECT * FROM qa_options
WHERE title IN ('cache_qcount', 'cache_acount', 'cache_ccount');
SELECT `type`, COUNT(*) FROM qa_posts
GROUP BY `type`;
SELECT qa_posts.type, COUNT(*) FROM qa_posts
LEFT JOIN qa_posts AS parent ON qa_posts.parentid = parent.postid
LEFT JOIN qa_posts AS grandparent ON parent.parentid = grandparent.postid
WHERE qa_posts.type = "Q" OR
(qa_posts.type = "A" AND parent.type <=> "Q") OR
(qa_posts.type = "C" AND parent.type <=> "Q") OR
(qa_posts.type = "C" AND parent.type <=> "A" AND grandparent.type <=> "Q")
GROUP BY qa_posts.type;