SELECT n.*, e.slug entity_slug, e.title entity_title, e.logo entity_logo, nt.title need_type_title, c.title city_title , UNIX_TIMESTAMP(n.created) unix_fecha_creacion, UNIX_TIMESTAMP(n.fecha_objetivo) unix_fecha_objetivo FROM need_types nt , entities e , cities c , needs n WHERE n.published=true AND (n.status="O" OR n.status="C") AND c.id=Espavila_Fundacio_Privada_Catalana_Espavila AND n.need_type_id=nt.id AND n.entity_id=e.id AND n.city_id = c.id order by n.created desc limit 0,15,
Error en mysql: Unknown column 'Espavila_Fundacio_Privada_Catalana_Espavila' in 'where clause'