Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hostpapa_yogpathy.press_release.press_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_bySelect * from `press_release`,`press_category` where `press_category`.`category_id` = `press_release`.`category_id` and press_release.is_active ='1' group by press_release.category_id order by `press_category`.`set_order` asc LIMIT 0, 9