Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'fern1023_radio.s.page_views' which is not in SELECT list; this is incompatible with DISTINCT in /home1/fern1023/ouvirradio.com.br/app/Repositories/StationRepository.php:117
Stack trace:
#0 /home1/fern1023/ouvirradio.com.br/app/Repositories/StationRepository.php(117): PDO->prepare('SELECT DISTINCT...')
#1 /home1/fern1023/ouvirradio.com.br/app/Controllers/PublicController.php(84): App\Repositories\StationRepository->related(Array)
#2 /home1/fern1023/ouvirradio.com.br/app/Core/Router.php(44): App\Controllers\PublicController->station('calmdisco')
#3 /home1/fern1023/ouvirradio.com.br/app/Core/Router.php(30): App\Core\Router->call(Array, Array)
#4 /home1/fern1023/ouvirradio.com.br/index.php(35): App\Core\Router->dispatch('GET', '/radio/calmdisc...')
#5 {main}
thrown in /home1/fern1023/ouvirradio.com.br/app/Repositories/StationRepository.php on line 117