Fix mysql wrong parameters value set

Erroc occurred when twi integer values were set in prepeare statement.
The sacond value overwrited the first value. This was caused becase there is passed
pointer to this to MySQL prepared statement structure. So the value must be copied.