Database error : Invalid SQL: SELECT photo.photo_id, category.photo_root, photo.vote, photo.cat_id, category.cat_name, category.cat_title, category.info_loc, category.info_date, category.from_day, photo.sub_id, sub_category.sub_name, sub_category.sail_num, sub_category.owner, sub_category.skipper, sub_category.designer, sub_category.model, sub_category.builder, photo.photo_search FROM category, photo, sub_category WHERE category.cat_id=photo.cat_id AND photo.sub_id=sub_category.sub_id AND sub_category.publish=1 AND category.publish='Y' AND photo.vote > 10 GROUP BY photo.cat_id, category.cat_name, photo.sub_id, sub_category.sub_name, photo.photo_search ORDER BY category.from_day DESC, sub_category.sub_name, category.cat_name ASC LIMIT 48, 8
MySQL Error : 1055 (Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'orbyblam_db.photo.photo_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by)