removed bad sql.