SELECT COUNT(*) from products where category_id in (35,34) and `show` = 1;
COUNT(*)|
--------+
307|
COUNT(*)|
--------+
154|
--------+
137|
SELECT
(SELECT COUNT(`id`) FROM `products` WHERE `category_id` = 34) AS `count1`,
(SELECT COUNT(`id`) FROM `products` WHERE `category_id` = 35) AS `count2`;