Hello,<br>I&#39;m&nbsp; trying, from&nbsp; mapfile, view the result of query that interrogates two tables of a database postgresql one of which is spatial (station).<br><br>Here is the code:<br><br><pre class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px;">
DATA &quot;the_geom from (SELECT station.* FROM station, plj_datalog WHERE  station.&quot;ident_station&quot;=Plj_datalog.&quot;IDENT_station&quot; AND station.&quot;type&quot;=&#39;HP&#39; AND plj_datalog.&quot;DATE_MES&quot;=&#39;2004-04-19&#39;)foo  using unique ident_station using srid=-1&quot;</pre>
<br>This query returns a result under pgAdminIII while under cartoweb I have the following error:<br><br><pre class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 34px;">
<div dir="ltr" style="text-align: left;">Mapserver error: Error in getString(): Parsing error near (the_geom from (SELECT station.* FROM station, plj_datalog WHERE  station.):(line 279)</div></pre>
 <br>Thanks for your help.<br>