Update query

I'm thinking that the WPDB::prepare() method might not actually support complex sprintf() notation (%2$d, etc.), so I modified it slightly to use simple sprintf() notation (%d, %s, etc.). That might fix the issue.