Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) -- SELECT products_categories.category, COUNT(DISTINCT products.prod_id) as nprod_this FROM products2011 as products, products_categories WHERE products.onsite='Y' AND products.prod_id=products_categories.prod_id AND brand_id=4454 GROUP BY products_categories.category ORDER BY 2 DESC LIMIT 10