Du skal bruge en brugerdefineret variabel : $query .= "SET @other = $other;"; // return: Unknown system variable 'other'