Error while fetching from menu as t1 left join menu as t2 on t1.days = t2.days and t1.week_type = t2.week_type Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'maasbest_db.t2.table_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by