select * from trans_transparencia_generador where id_generador = order by generador_titulo asc
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 generador_titulo asc' at line 1