Fatal error: Uncaught exception 'Exception' with message 'Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'avoa_site.h.tx_horario' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by<br /><pre>SELECT r.id_rota, r.tx_origem, r.tx_destino, r.tx_duracao, MIN(h.tx_horario) AS tx_saida, MAX(h.tx_horario) AS tx_chegada FROM horario h JOIN ponto p ON h.id_ponto = p.id_ponto JOIN rota r ON r.id_rota = p.id_rota WHERE id_dia_semana = '2' AND (st_ponto = 'O' OR st_ponto = 'D') AND r.tp_rota = 'A' GROUP BY r.id_rota, r.tx_origem, r.tx_destino, h.nr_volta, h.id_carro ORDER BY h.tx_horario</pre>' in /home/avoa/public_html/base/library/octa/OctaDb.php:126 Stack trace: #0 /home in /home/avoa/public_html/base/library/octa/OctaDb.php on line 126