A Database Error Occurred

Error Number: 1055

Expression #5 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'qtequip_qt2014.HOF_PICS.picture_name' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

SELECT `HALL_OF_FAME`.`hof_id`, `HALL_OF_FAME`.`hof_title`, `HALL_OF_FAME`.`hof_description`, `HALL_OF_FAME`.`hof_id`, `HOF_PICS`.`picture_name` FROM `HALL_OF_FAME` LEFT JOIN `HOF_PICS` ON `HALL_OF_FAME`.`hof_id` = `HOF_PICS`.`hof_id` GROUP BY `HALL_OF_FAME`.`hof_id` ORDER BY RAND()

Filename: models/Hof_model.php

Line Number: 16