Salve a tutti,

ho questo code e non riesco ad aggiungere il comando ORDER BY perchè mi da errore.

code:

codice:
SELECT COUNT(Commenti.idfoto) AS TotaleCommenti
FROM Commenti INNER JOIN Immagini ON Immagini.idfoto=Commenti.idfoto
WHERE Immagini.categoria='A'
ORDER BY Immagini.IdFoto DESC
esiste qualke altro modo dove poter inserire ORDER BY tabella.campo DESC?