mySQL Throwing a 1111 Invalid use of Group Function -
for life of me can't figure out why query throwing 1111 error. help!
select fs.player_id, count(fs.game_id) eg.flag_stats fs, eg.flag_games fg fs.here = '1' , fg.start_time > max(re.end_time) , fs.freq = fg.winning_freq , fs.game_id = fg.id group fs.player_id order count(fs.game_id) desc; please , thanks!
thanks @sgeddes below fix.
select pl.name, count(fs.game_id) eg.flag_stats fs, eg.flag_games fg, eg.player pl fs.here = '1' , fg.start_time > (select max(end_time) eg.reset) , fs.freq = fg.winning_freq , fs.game_id = fg.id , fs.player_id = pl.id group fs.player_id order count(fs.game_id) desc
Comments
Post a Comment