Code:
void Database::GetAccountStatus(Client *c) {
...
if (!RunQuery(query,MakeAnyLenString(&query, "select `status`, `hideme`, `karma`, `revoked` from `account` where `id`='%i' limit 1",
c->GetAccountID()),errbuf,&result)){
...
if(mysql_num_rows(result) != 1)
{
_log(UCS__ERROR, "Error in GetAccountStatus");
mysql_free_result(result);
return;
}
So, looking at that I'd guess you're getting 0 rows for that query. *shrug*