*Changed query.AddParameter to query.AddIdParameter