I need to update a table by using info from another table. Permanent table has inncode, hotelname, and activeTemp table has inncode, hotelnameI need to update the permanent table active column to 1 where permanent inncode = temp inncode. I am getting an error from this queryUPDATE MeetingExcellence_Hotels SET excellenceHotel = 1 WHERE (SELECT DISTINCT MH.Inncode, MT.inncode AS TEMPINNCODE, MH.Hotel, MT.hotel AS TEMPHOTEL,MH.EXCELLENCEHOTEL FROM MeetingExcellence_Hotels AS MH INNER JOIN MeetingExcellenceTEMP AS MT ON MT.inncode = MH.InncodeWHERE MH.EXCELLENCEHOTEL = 0)