in reply to How to take the last character out of a string

Add commas in front of additional parameters, not after the last parameter.
$query1 = "select foo"; $query1 = $query1.", bar";

Forget that fear of gravity,
Get a little savagery in your life.