Если так то не катитПробуй UNION
select * from TEST_TABLE where tovar = '1'
UNION
select * from TEST_TABLE where tovar = '0' limit 1
select
firstname as fname,
count(*) as total_cnt,
(select count(*) from users where firstname = fname and lastname is null) as empty_cnt
from users
group by fname;