Пишу дополнение... Код (PHP): $query = sprintf("SELECT SUM(event_sum) AS value, p.firstname, p.lastname, t.short_name as team, (SUM(ch.vote_rating) / COUNT(ch.vote_rating)) as star, p.id as id FROM #__joomleague_match_events AS me LEFT JOIN #__joomleague_players AS p ON me.player_id = p.id LEFT JOIN #__joomleague_playertool AS pt ON me.player_id = pt.player_id AND pt.project_id = me.project_id LEFT JOIN #__joomleague_teams AS t ON pt.team_id = t.id LEFT JOIN #__joomleague_team_joomleague AS teamtool ON teamtool.team_id = t.id AND teamtool.project_id = me.project_id LEFT JOIN #__joomleague_divisions AS jldiv ON jldiv.id = teamtool.division_id LEFT JOIN #__joomleague_chara AS ch ON p.id = ch.id_hock WHERE me.event_type_id =%s AND me.project_id =%s AND ( jldiv.id = $division OR jldiv.parent_id = $division ) GROUP BY p.id ORDER BY value DESC LIMIT 0 , %s",$eventtype ,$project->id, $limit); Выводит в row->star то, что нужно, но! в value результат меняется на мне неведомый, откуда он берется я вообще не понимаю, вместо верного значения в 10 (к примеру), показывается 21 и т.д. Если убрать LEFT JOIN #__joomleague_chara AS ch ON p.id = ch.id_hock то все нормально для value... Вопрос, почему? А что делать?))