MySQL err: Lost connection to MySQL server during query SELECT title, categoryID, (SELECT COUNT(categoryID) FROM productsCategories WHERE productsCategories.categoryID = category.categoryID) AS 'products'
FROM category
WHERE parentID = 0
ORDER BY products DESC
LIMIT 10