SELECT count(id) as nums FROM `web_products` WHERE `channel_id` = 16 ANd is_hidden=0 AND category_id=90 === 7 ---- array(1) { [0]=> int(90) }