Sei il numero uno!!!
Così funziona. Grazie millecodice:SELECT * FROM (SELECT DISTINCT tblUtenti.ID, tblUtenti.Nome, tblUtenti.Avatar, tblUtenti.User, tblUtenti.DataUltimaModifica, tblUtenti.VisiteTotali, (SELECT COUNT(ID) AS Quanti FROM tblOpere WHERE IDUtente = tblUtenti.ID) AS NumeroOpere FROM tblUtenti INNER JOIN tblOpere ON tblUtenti.ID = tblOpere.IDUtente WHERE IDCategoria = 4 OR IDCategoria = 5 OR IDCategoria = 6 OR IDCategoria = 42 OR IDCategoria = 43 OR IDCategoria = 44) AS tblUtentiOpere ORDER BY NumeroOpere ASC


Rispondi quotando