Inoltre, la query nell’OP estrarrebbe anche tutti i PM e gli argomenti eliminati.
Penso che dovrebbe essere più simile a:
SELECT
COUNT(*)
FROM topics t
JOIN categories c ON c.id = t.category_id
WHERE c.read_restricted IS FALSE
AND t.archetype = 'regular'
AND t.deleted_at IS NULL