Additional mysql error checking. Fixed reference to result when fetching array.
Additional mysql error checking.
Fixed reference to result when fetching array.

oapi/shieldsup,oapi/shieldsup,oapi/shieldsup