Lost connection to MySQL server during query
query=SELECT filters.*, count(distinct products.prod_id) as total from prodcat_weight inner join products on products.prod_id = prodcat_weight.prod_id inner join products_filters on products_filters.product_id=products.id inner join filters on products_filters.filter_id=filters.id WHERE prodcat_weight.cat_id in (375) and prodcat_weight.hidden='0' group by filters.id order by filters.weight asc