<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="mso-ansi-language: EN-US" lang=EN-US><FONT size=3><FONT face="Times New Roman">whenever I query one postgis layer I have this error:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></SPAN></DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="mso-ansi-language: EN-US" lang=EN-US><o:p><FONT size=3 face="Times New Roman"> </FONT></o:p></SPAN></DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><FONT size=3><FONT face="Times New Roman"><B><SPAN style="mso-ansi-language: EN-GB" lang=EN-GB>Fatal error</SPAN></B><SPAN style="mso-ansi-language: EN-GB" lang=EN-GB>: [MapServer Error]: msPOSTGISLayerGetShape(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor2 BINARY CURSOR FOR SELECT "ogc_fid"::text,asbinary(force_collection(force_2d(wkb_geometry)),'NDR') from roadsnew WHERE OID = 267497 -ERROR: DECLARE CURSOR can only be used in transaction blocks More Help: in <B>C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_query.php</B> on line <B>570<o:p></o:p></B></SPAN></FONT></FONT></DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><B><SPAN style="mso-ansi-language: EN-GB" lang=EN-GB><o:p><FONT size=3 face="Times New Roman"> </FONT></o:p></SPAN></B></DIV>
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN style="mso-ansi-language: EN-GB" lang=EN-GB><FONT size=3><FONT face="Times New Roman">Any help please?<o:p></o:p></FONT></FONT></SPAN></DIV>
<DIV> </DIV></td></tr></table><br>