Error en sql_a_array
Debido a: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 p.propiedad = dt.propiedad
and en_internet = 'S'
group by t.t' at line 7
En la consulta 'select t.tipo_propiedad,t.nombre
from tipospropiedad t, datos dt , propiedades p
where p.inmobiliaria = 'CU'
and dt.campo = 1
and dt.valor = t.tipo_propiedad
and t.region=
and p.propiedad = dt.propiedad
and en_internet = 'S'
group by t.tipo_propiedad,t.nombre
order by t.nombre'