when you use count(*) the rest of the column in the select statement has to be in the GROUP BY clause.exmaple select col1, col2, col3, col4, col5, count(*)from sometablegroup by col1, col2, col3, col4, col5
Try this changes. select Mp3.*, Artist.[Name] ArtistName, Album.*, count(review.*) reviews, review.cnt, Id3.bitRate, Id3.frequency, Id3.mode, dbo.SecToMin(Id3.length) length from wisetopic_mp3 Mp3 -- get artist info left join wisetopic_artist Artist on Mp3.userId = Artist.artistId -- get album info (per song) left join wisetopic_artist_album Album on Mp3.albumId = Album.albumId -- get id3 data (length) left join wisetopic_mp3_id3 Id3 on Mp3.mp3Id = Id3.mp3Id -- get review countleft join ( select mp3Id, count(*) as cnt from wisetopic_artist_song_review group by mp3Id) reviewon Mp3.mp3Id = review.mp3Idwhere Mp3.UserId = @artistId order by Mp3.albumId
KH