Fixed bug on sql_fetchfield