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