SELECT c.*, (SELECT COUNT(0) FROM publicacoes WHERE id_assunto = 37) as qtd FROM `assuntos` c WHERE `id_assunto` = 37