Um erro de banco de dados ocorreu

Error Number: 1055

Expression #19 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'ttj_sg.links.sort' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT `files`.`id`, `files`.`active`, `files`.`id_content`, `files`.`id_type`, `files`.`file_name`, `files`.`file_type`, `files`.`file_path`, `files`.`full_path`, `files`.`raw_name`, `files`.`orig_name`, `files`.`file_ext`, `files`.`file_size`, `files`.`image_width`, `files`.`image_height`, `files`.`image_type`, `files`.`image_size_str`, `files`.`updated`, `files`.`created`, `links`.`sort` FROM `files` JOIN `links` ON `links`.`id_secondary` = `files`.`id` AND `entity` = "files" WHERE `files`.`id_type` = 2 AND `files`.`active` <> "2" AND `files`.`id` IN('28663', '28683', '28670', '28676', '28661', '28684', '28671', '28673', '28666', '28667', '28680', '28675', '28662', '28681', '28674', '28672', '28679', '28669', '28682', '28665', '28678', '28668', '28664', '28686', '28677', '28685') GROUP BY `id_secondary` ORDER BY `sort` LIMIT 50

Filename: models/File_model.php

Line Number: 120