FIX Mantis Plugin: update SQL API

using mysql_ is unsafe.

contributed by: Paul Richards (MantisBT team)