where p.user_id=33
для юзера и/или where p.customer_id=2
для кастомера.select p.customer_id, p.`status`, count(p.id)
from 247250_Products p
group by p.customer_id, p.`status`
select s.customer_id, s.status_name,
IFNULL((select count(id) from 247250_Products p where p.`status`= s.status_name),0) as 'count'
from 247250_Statuses s