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