SELECT count(id) as cnt FROM modx_catalog WHERE `brend` in (58) AND `cat` in (6) AND store=1 AND `store`=1