Fixed compatability issue with prepare statement.

Added additional NULL argument to prepare statements. The missing
parameter was causing warnings.