ofetch(" select sum(mod_strength) as effect_strength, sum(mod_dexterity) as effect_dexterity, sum(mod_intuition) as effect_intuition, sum(mod_endurance) as effect_endurance, sum(mod_intelligence) as effect_intelligence, sum(mod_wisdom) as effect_wisdom from users_effects where owner_id = ? ", $user_id); } public static function getAll(int $user_id): object { return Db::getInstance()->ofetchAll('SELECT * FROM users_effects WHERE owner_id = ?', $user_id); } public static function count(int $user_id, int $type) { return Db::getInstance()->fetchColumn('select count(*) from users_effects where type = ? and owner_id = ?', [$type, $user_id]); } }