This is the actual function
function uc_guest_checkout_uc_checkout_complete($order, $account) {
if (!empty($_SESSION['uc_guest_checkout']) && !user_is_logged_in()) {
switch ($order->data['complete_sale']) {
case 'new_user':
// For guest checkout, we replace the ubercart generated username and email
// for a new user with one that is more anonymous.
$name = uniqid('anon-', TRUE);
$mail = $name . '.' . uc_store_email();
//db_query('UPDATE {users} SET name = "%s", mail = "%s" WHERE uid = %d', $name, $mail, $account->uid);
db_query('UPDATE {users} SET name = :name, mail = :mail WHERE uid = :uid',
array(':name' => $name, ':mail' => $mail, ':uid' => $account->uid));
break;
case 'logged_in':
// If the order is marked logged in but anonymous, this means that
// we must have set the uid to the default account, but still treat
// this as a new user.
$order->data['complete_sale'] = 'new_user';
break;
}
}
_uc_guest_checkout_end();
}
How can i resolve the query of above one in order to avoid the error. Any suggestions w.r.t query will be nice.Thanks in advance.