Estão vendo a parte em negrito? Eu quero ajuda com o seguinte:$query = $db->query("select blueprint_items.effectiveness, blueprint_items.name from `items`, `blueprint_items` where blueprint_items.id=items.item_id and items.player_id=? and blueprint_items.type='arma' and items.status='equipped'", array($player->id));
$player->defbonus = ($query->recordcount() == 1)?$query->fetchrow():0;
o blueprint_items.type não pode ser = 'arma', tem que ser diferente de 'arma'
Espero que tenham entendido!