Can try something like this
if (Sql_Query(mmysql_handle, "INSERT INTO `acc_reg_num`(`account_id`, `key`, `index`, `value`) VALUES ('%d','%s','%u','%d');",
acc_reg_num_table, sd->status.account_id, "#bonuspoint", '0') != SQL_SUCCESS)
Sql_ShowDebug(mmysql_handle);