A Database Error Occurred

Error Number: 1055

Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'hlisukwebsite.p.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT `p`.* FROM `tbl_portfolio` as `p` LEFT JOIN `tbl_category_portfolio` as `cp` ON `p`.`id` = `cp`.`portfolio_id` WHERE `p`.`published` = 'yes' GROUP BY `cp`.`portfolio_id` ORDER BY `cp`.`position` ASC

Filename: controllers/Portfolio.php

Line Number: 55