Filter::select('*', \DB::raw("( SELECT COUNT(*) from filter_products
where product_id in ( select category_products.product_id from
category_products where category_products.category_id = '?'
group by category_products.product_id
) and filters.id = filter_products.filter_id
) as total ",[ $this -> category_id ]) )