[SELECT DISTINCT(UCASE(SUBSTRING(category,1,1))) as letter FROM `products` WHERE domen='fi' ORDER BY category][Expression #1 of ORDER BY clause is not in SELECT list, references column 'gran.products.category' which is not in SELECT list; this is incompatible with DISTINCT] luokka A-Z