Fixed sql error when sql has empty lines #1