Rezolvarea „Warning: Missing argument 2 for wpdb::prepare(), called in”

Dupa ce mi-am facut update-ul la Wordpres 3.5 pe blog m-am trezit cu o eroare in footer-ul blogului care suna cam asa:

Warning: Missing argument 2 for wpdb::prepare(), called in /wp-content/themes/inove/footer.php on line 22 and defined in /wp-includes/wp-db.php on line 990

Solutia pe care am gasit-o a fost aceea de a inlocui linia 22 in footer.php (/wp-content/themes/inove/footer.php):

$post_datetimes = $wpdb->get_row($wpdb->prepare(„SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970”));

cu urmatoarea linie:

$post_datetimes = $wpdb->get_row($wpdb->prepare(„SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > %s”,’1970′));

Solutia este valabila doar pentru tema iNove folosita de mine si stiu ca este o tema destul de folosita!