Server shutdown in progress
query=SELECT products.*, min(products_atts.price) as pricefrom, min(products_atts.pricex) as pricexfrom, count(products_atts.product_id) as attcount, products_images.filename as thefile,count(prodcomments.id) as comcount, sum(prodcomments.stars) as comstars from prodcat_weight inner join products on products.prod_id=prodcat_weight.prod_id inner join suppliers on suppliers.sid=products.supplier inner join products_filters as fl1 on products.id=fl1.product_id left join products_atts on products.id=products_atts.product_id left join products_images on products.prod_id=products_images.prod_id and products_images.firstimg=1 left join prodcomments on products.prod_id=prodcomments.product_id and prodcomments.approved='1' WHERE prodcat_weight.cat_id in (508,510,501,502,503,499,500,504,511,505,506,507,509,498) and prodcat_weight.hidden='0' and suppliers.supplier_url='Solgar' and ((fl1.filter_id='408' or fl1.filter_id='439' or fl1.filter_id='519' or fl1.filter_id='454') ) group by products.id order by prodcat_weight.weight DESC, id desc LIMIT 0, 12