SELECT `drs_section `.`id`, `drs_section `.`name`, (select count(*) from drs_text where drs_text.idcat=drs_section.id )`no_droos`FROM `drs_section`