WordPress database error: [Table 'wp158.ro_terms' doesn't exist]SELECT DISTINCT t.term_id, t.name
FROM ro_terms AS t
JOIN ro_term_taxonomy AS tt ON t.term_id = tt.term_id
JOIN ro_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id
JOIN ro_posts AS p ON p.ID = tr.object_id
WHERE p.post_type = 'post' AND tt.taxonomy = 'category'
AND p.post_status = 'publish'
GROUP BY t.term_id
HAVING COUNT(p.ID) > 0
ORDER BY t.name;