Unable to list itemsSELECT distinct p.*,1 as IsVariation, SubItemSuffixCode, ItemSize, ItemColor, sp.ItemMainImage as SubItemMainImage, sp.ItemThumbImage as SubItemThumbImage, sp.ItemLargeImage as SubItemLargeImage, sp.ItemStock as SubItemStock, sp.IsSoldOut as SubItemIsSoldOut, sp.PageName as SubPageName, sp.SubItemPrice, sp.SubItemRRPPrice, sp.SubItemPriceType, sp.id as SubProductID FROM products p LEFT JOIN subproducts sp ON (p.id=sp.ProductID AND sp.Visible=1 AND sp.Deleted=0) LEFT JOIN products_categories pc ON (p.id=pc.ProductID) WHERE 1 AND p.`Deleted`=0 AND p.Visible=1 AND p.visible=1 AND ( CategoryID1 IN (406 , 423 , 424 , 425 , 426 , 427 , 473 , 474) or CategoryID2 IN (406 , 423 , 424 , 425 , 426 , 427 , 473 , 474) or CategoryID IN (406 , 423 , 424 , 425 , 426 , 427 , 473 , 474) ) ORDER BY p.priority desc, p.id desc limit 0,24 Lost connection to MySQL server during query