In php we can append strings in many ways.
Method 1 ---------------------------- $sql = \"SELECT field1, \";
I vote for Method 3.
The less concatenation operations, the better.
Also, you should use single quotes as often as possible to avoid the PHP parser having to interpolate variables inside your strings.