Error Number:
ERROR: syntax error at or near "order" LINE 1: ...d and ep.provaid=p.id and e.id=170228 and p.id= order by e... ^
SELECT e.*, p.id as provaid , p.descricao , ep.datainicial as inicio , ep.datafinal as fim , ep.status_prova FROM evtevento e, evtevento_provas ep, evtprova p where e.id=ep.eventoid and ep.provaid=p.id and e.id=170228 and p.id= order by e.periodoinicial
Filename: /var/www/cavalocrioulo.org.br/controllers/eventos.php
Line Number: 3079