Query Error:Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'cmls.ads.orderno' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SQL:select ads.orderno, ads.display_time, ads.photo, ads.title,ads.description, ads.created,ads.url, ads.created,ads.add_type_id, payment_detail.paymentby as paymentby from advertisements as ads join ads_payment_detail as payment_detail on (ads.orderno = payment_detail.orderno) where status = 'Completed' group by rand()