MySQL Error: select tblcarreras.id,strNombre,intnrocarrera,datfecha from tblcarreras inner join tblcalendarios on tblcalendarios.id=tblcarreras.idCalendario where year(datFecha)='2026' and idCategoria= order by datFecha You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by datFecha' at line 1