SELECT(SELECT COUNT(*) FROM category1 WHERE public=1) AS restringidos, (SELECT COUNT(*) FROM category1) AS total FROM category1 LIMIT 1