Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'result[i].id ''' at line 3
Error No: 1064
select *,' result[i].id ' as materia_id from materia inner join jornais on materia.jornalId = jornais.id where materia.id = '' result[i].id ''