Fixed mysqli php error/warning reporting issues.