Minor - format code.
Fixes mysql error see BT#7078
Fixes bad parameter.