Fixed compatability issue with prepare statement.

Added an additional required parameter to prepare statement.