wpdb prepare corrections

Signed-off-by: Luke Oatham <lukeoatham@gmail.com>