SQL now fixed