SELECT `I`.`ListID`, `I`.`ProductID`, `I`.`ItemGroup`, `I`.`ItemColorID`, `I`.`ItemColor`, `I`.`ItemSizeOnly` AS `ItemSize`, `I`.`ItemLength`, `I`.`RequiredAlterationID`, `I`.`ProspectItem`,
`I`.`SalesPrice`, `I`.`SalesPriceHS` AS `WebPrice`,
`I`.`AltShowListID`, `I`.`InventoryOnly`
FROM `tbl_items` `I`
LEFT JOIN `tbl_items_comp` `T` ON (`I`.`ItemColorID` = `T`.`ItemColorID`)
WHERE (`I`.`ItemGroup` = 'HS5-3410SS') AND (`I`.`ShowOnlyLocal` = '1') AND (IsActive=1) AND (`I`.`SpecialGroupID` Is Null OR `I`.`SpecialGroupID` = '0') AND (`T`.`CompID` = '2')
GROUP BY `I`.`ListID`
ORDER BY `I`.`ProspectItem`, IFNULL(`I`.`ItemColor`,'ZZZZZZ'),`I`.`SizeSort`,`I`.`ItemSize`, `I`.`ItemLength`