Hi,
Actually if you see your query properly it does not mention both the tables. But you are using those in WHERE clause.
Try this...
UPDATE rooms,events SET rooms.available = 'No', rooms.availableQty = 0 WHERE rooms.event_ID = events.event_ID AND events.active = 'No'
Thanks,