Fix: Bug into sql request because of incomplete group by