Fixed sql.