lo que te dice el errror que es q tenes un salto de linea a cada variable tendrias q quitarle algun posible '\n'
podes usar tambien esta funcion para cada variable
Código PHP:
function utrim($source){
$protect = array(
"<" => "<",
">" => ">",
"&" => "&",
"\"" => """,
"'" => "'",
"\n" => " ",
"\t" => " ",
"\r" => " ",
"\0" => " ",
"\x0B" => "",
" " => ""
);
$temp = ltrim($source,"\n\t\r\h\v\0 ");
$temp = rtrim($temp,"\n\t\r\h\v\0 ");
$temp = trim($temp,"\x7f..\xff\x0..\x1f");
strtr($temp, $protect);
return $temp;
}