I changed line 990 to this in wp-db.php:
/*
Set args = null in function below to avoid future problems with other plugins. I assume WordPress will do something similar in a future update, but this works for now.
*/
// OLD FUNCTION
// function prepare( $query, $args ) {
// NEW FUNCTION
function prepare( $query = null, $args = null ) {