fixed typo on sql parsing