Error executing query: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY a.attrValue' at line 14
SELECT DISTINCT a.attrName, a.attrValue FROM tblProducts p, tblSKU s, tblAttributes a WHERE (p.prodID = s.ProductID) AND (s.SKUID = a.SKUID) AND p.prodID = ORDER BY a.attrValue