A Database Error Occurred

Error Number: 3065

Expression #1 of ORDER BY clause is not in SELECT list, references column 'bwmksb_bwdb.a.banner_gallery_order' which is not in SELECT list; this is incompatible with DISTINCT

SELECT distinct a.banner_gallery_id as content_gallery_id, a.banner_gallery_title as content_gallery_title, a.banner_gallery_image as content_gallery_image FROM tbl_banner_gallery as a where a.banner_gallery_active_status =1 order by banner_gallery_order Asc

Filename: models/web/Model_gallery.php

Line Number: 107