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 1 SELECT idiomas_id FROM unidades WHERE unidades_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 'AND idiomas_id =
ORDER BY sequencia' at line 4 SELECT nome,unidades_id
FROM unidades
WHERE unidades_id <>
AND idiomas_id =
ORDER BY sequencia
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 1 SELECT idiomas_id FROM unidades WHERE unidades_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 1 SELECT referencia FROM unidades WHERE unidades_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 'and u.referencia =' at line 6 SELECT u.unidades_id, i.nome, i.imagen
from unidades u, idiomas i
where u.idiomas_id=i.idiomas_id
and i.ativo = 1
and i.idiomas_id <>
and u.referencia =