Fix SQL again