Fatal error: Uncaught mysqli_sql_exception: Expression #1 of ORDER BY clause is not in SELECT list, references column 'comprofocusindia_akdb.sales_register.sale_date' which is not in SELECT list; this is incompatible with DISTINCT in /home/comprofocusindia/ak.profocusindia.com/monthly_report.php:8 Stack trace: #0 /home/comprofocusindia/ak.profocusindia.com/monthly_report.php(8): mysqli->query('SELECT DISTINCT...') #1 {main} thrown in /home/comprofocusindia/ak.profocusindia.com/monthly_report.php on line 8