correcting FROM statement