2010-02-11 08:36:36 CET LOG: statement: select "feattyp","name","attvalue",encode(AsBinary(force_collection(force_2d("geom")),'NDR'),'hex') as geom,"gid" from (select gid, a.id, a.feattyp, name, geom, coalesce(attvalue , '-') as attvalue from mn_pi a LEFT OUTER JOIN mn_piea b ON a.id = b.id and b.atttyp = 'RY') as foo where geom && GeomFromText('POLYGON((-5.67519663895349 51.7856435305264,-5.67519663895349 51.8617433222587,-5.55207438828265 51.8617433222587,-5.55207438828265 51.7856435305264,-5.67519663895349 51.7856435305264))',4326) 2010-02-11 08:36:36 CET LOG: statement: select * from ( SELECT distinct a.id, b.gid as gid, a.featid as above_nw, c.frc, ST_Intersection(ST_Buffer(b.geom, 4E-4), d.geom) as geom FROM mn_se a, mn_ps b, mn_nw c, mn_nw d where a.feattyp = 4110 and a.elev = 1 and a.id = b.id and a.featid = c.id and ST_Touches(ST_EndPoint(c.geom), d.geom) and (c.geom && GeomFromText('POLYGON((0 0,0 0,0 0,0 0,0 0))',4326)) and (b.geom && GeomFromText('POLYGON((0 0,0 0,0 0,0 0,0 0))',4326))) as foo where false limit 0 2010-02-11 08:36:36 CET ERROR: syntax error at end of input at character 1595 2010-02-11 08:36:36 CET STATEMENT: select "frc",encode(AsBinary(force_collection(force_2d("geom")),'NDR'),'hex') as geom,"gid" from (