A Database Error Occurred

Error Number: 1055

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'latinxtu_data.directory_country_region.default_name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT `tbl_shipping_restriction`.`state_code`, `directory_country_region`.`default_name` FROM (`tbl_shipping_restriction`) LEFT JOIN `directory_country_region` ON `directory_country_region`.`code` = `tbl_shipping_restriction`.`state_code` WHERE `country_id` = 'US' AND `type` = 'postcode' AND `status` = 'Active' GROUP BY `state_code` ORDER BY `id` desc

Filename: /home/latinxtube/public_html/models/shipping_restriction_model.php

Line Number: 142