SELECT categoria.imagem_tema FROM itemcategoria INNER JOIN categoria ON itemcategoria.categoria_id = categoria.id INNER JOIN item ON itemcategoria.item_id = item.id WHERE item.id =
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 '' at line 4