Stuck in an issue with sql_mode restriction. Made the change in /etc/my.cnf and restart the mysql.d but getting the same error.
In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column 'gamenew.user_profiles.account_id'; this is incompatible with sql_mode=only_full_group_by
phpmyadmin have a blank in sql mode
my mysql version is 5.7 and CENTOS version is 7
the code is working fine in latest version on mysql in my local system. I have made lots of SP so can't prefer this link Stored procedure raising "incompatible with sql_mode=only_full_group_by" despite sql_mode being blank