Breaking News

Why is my script not printing output on one line?

This is an image of what I’m asking for I am using the following -echo- in a script and after I execute, the output format is as shown below:

`echo -e "UPDATE table1 SET table1_f1='$Fname' ,table1_f2='$Lname' where table1_f3='$id';\ncommit;" >> $OutputFile` 

output: UPDATE table1 SET table1_f1='Fname' ,table1_f2='Lname' where table1_f3='id '; the '; is appearing on a new line, why is that happening?