<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HELP con MySql5 e query]]></title><description><![CDATA[<p dir="auto">Salve ragazi, sono nuovo del forum e mi presento, inizio subito con il porvi questo quesito:</p>
<p dir="auto">Ho questa select:<br />
SELECT c.*, <a href="http://g.name" rel="nofollow ugc">g.name</a> AS groupname, <a href="http://cc.name" rel="nofollow ugc">cc.name</a>, <a href="http://u.name" rel="nofollow ugc">u.name</a> AS editor, f.content_id AS frontpage, s.title AS section_name, <a href="http://v.name" rel="nofollow ugc">v.name</a> AS author<br />
FROM mos_content AS c, mos_categories AS cc, mos_sections AS s<br />
LEFT JOIN mos_groups AS g ON <a href="http://g.id" rel="nofollow ugc">g.id</a> = c.access<br />
LEFT JOIN mos_users AS u ON <a href="http://u.id" rel="nofollow ugc">u.id</a> = c.checked_out<br />
LEFT JOIN mos_users AS v ON <a href="http://v.id" rel="nofollow ugc">v.id</a> = c.created_by<br />
LEFT JOIN mos_content_frontpage AS f ON f.content_id = <a href="http://c.id" rel="nofollow ugc">c.id</a><br />
WHERE c.state &gt;= 0 AND <a href="http://c.catid=cc.id" rel="nofollow ugc">c.catid=cc.id</a> AND <a href="http://cc.section=s.id" rel="nofollow ugc">cc.section=s.id</a> AND s.scope='content' ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering LIMIT 0,10</p>
<p dir="auto">che funziona alla perfezione con MySql 4.? ma non funziona con MySql 5.?</p>
<p dir="auto">DOVE STA IL PROBLEMA??? c'è qualcuno in grado di aiutarmi???</p>
<p dir="auto">Grazie mille e complimenti per il forum.</p>
<p dir="auto">Raffaele</p>
]]></description><link>https://dev.connect.gt/topic/14655/help-con-mysql5-e-query</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 18:30:54 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/14655.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Aug 2006 07:40:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HELP con MySql5 e query on Mon, 07 Aug 2006 07:47:25 GMT]]></title><description><![CDATA[<p dir="auto">Happy di averti aiutato... <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://dev.connect.gt/post/354642</link><guid isPermaLink="true">https://dev.connect.gt/post/354642</guid><dc:creator><![CDATA[dusy]]></dc:creator><pubDate>Mon, 07 Aug 2006 07:47:25 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Mon, 07 Aug 2006 07:08:27 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> OK; grazie mille ora funziona.</p>
<p dir="auto">GRAZIEEEEEEEEEEE <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /> <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /> <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /> <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/354655</link><guid isPermaLink="true">https://dev.connect.gt/post/354655</guid><dc:creator><![CDATA[raffox76]]></dc:creator><pubDate>Mon, 07 Aug 2006 07:08:27 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Mon, 07 Aug 2006 07:06:31 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>Dusy</strong></p>
<p dir="auto">Significa che quando lanciava il query questo<br />
dava un errore e l'errore era:</p>
<p dir="auto">#1054 - Unknown column 'c.access' in 'on clause' <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
<p dir="auto">Però io mi sono scervellato e lui neanche un grazie ha detto...</p>
</blockquote>
<p dir="auto">Eccomi, sono tornato ora in ufficio e stò provando la tua select, ora ti dico e cmq grazie mille per l'aiuto. Scusami ma questo fine settimana ho staccato la spina.<br />
Ora ti faccio sapere.</p>
]]></description><link>https://dev.connect.gt/post/354654</link><guid isPermaLink="true">https://dev.connect.gt/post/354654</guid><dc:creator><![CDATA[raffox76]]></dc:creator><pubDate>Mon, 07 Aug 2006 07:06:31 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 18:45:14 GMT]]></title><description><![CDATA[<p dir="auto">Significa che quando lanciava il query questo<br />
dava un errore e l'errore era:</p>
<p dir="auto">#1054 - Unknown column 'c.access' in 'on clause' <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
<p dir="auto">Però io mi sono scervellato e lui neanche un grazie ha detto...</p>
]]></description><link>https://dev.connect.gt/post/354651</link><guid isPermaLink="true">https://dev.connect.gt/post/354651</guid><dc:creator><![CDATA[dusy]]></dc:creator><pubDate>Fri, 04 Aug 2006 18:45:14 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 17:29:36 GMT]]></title><description><![CDATA[<p dir="auto">Che significa: non funziona?<br />
Non ti da risultati?</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/354638</link><guid isPermaLink="true">https://dev.connect.gt/post/354638</guid><dc:creator><![CDATA[massy]]></dc:creator><pubDate>Fri, 04 Aug 2006 17:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 12:20:57 GMT]]></title><description><![CDATA[<p dir="auto">Sì in effetti mi sono documentato ed è stata variata la sintasssi nella JOIN<br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/left-join-optimization.html" rel="nofollow ugc">MySQL 5.0 Reference Manual :: 7.2.9 LEFT JOIN and RIGHT JOIN Optimization</a></p>
<p dir="auto">Prova questo e dimmi se funziona...</p>
<p dir="auto">SELECT<br />
c.*,<br />
<a href="http://g.name" rel="nofollow ugc">g.name</a> AS groupname,<br />
<a href="http://cc.name" rel="nofollow ugc">cc.name</a>,<br />
<a href="http://u.name" rel="nofollow ugc">u.name</a> AS editor,<br />
f.content_id AS frontpage, s.title AS section_name, <a href="http://v.name" rel="nofollow ugc">v.name</a> AS author<br />
FROM mos_categories AS cc, mos_sections AS s, mos_content AS c<br />
LEFT JOIN mos_groups AS g ON <a href="http://g.id" rel="nofollow ugc">g.id</a> = c.access<br />
LEFT JOIN mos_users AS u ON <a href="http://u.id" rel="nofollow ugc">u.id</a> = c.checked_out<br />
LEFT JOIN mos_users AS v ON <a href="http://v.id" rel="nofollow ugc">v.id</a> = c.created_by<br />
LEFT JOIN mos_content_frontpage AS f ON f.content_id = <a href="http://c.id" rel="nofollow ugc">c.id</a><br />
WHERE c.state &gt;= 0 AND <a href="http://c.catid=cc.id" rel="nofollow ugc">c.catid=cc.id</a> AND <a href="http://cc.section=s.id" rel="nofollow ugc">cc.section=s.id</a> AND s.scope='content'<br />
ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering LIMIT 0,10</p>
]]></description><link>https://dev.connect.gt/post/354650</link><guid isPermaLink="true">https://dev.connect.gt/post/354650</guid><dc:creator><![CDATA[dusy]]></dc:creator><pubDate>Fri, 04 Aug 2006 12:20:57 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 10:19:30 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>Dusy</strong></p>
<p dir="auto">E la query banale tipo</p>
<p dir="auto">SELECT c.*<br />
FROM mos_content AS c<br />
ORDER BY c.access</p>
<p dir="auto">Non da problemi???</p>
</blockquote>
<p dir="auto">devo confermarti che funziona, è questo lo strano...credo ci sia qualche errore di sintassi o qualcosa di cambiato tra il MySql4 ed il MySql5</p>
]]></description><link>https://dev.connect.gt/post/354657</link><guid isPermaLink="true">https://dev.connect.gt/post/354657</guid><dc:creator><![CDATA[raffox76]]></dc:creator><pubDate>Fri, 04 Aug 2006 10:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 09:47:03 GMT]]></title><description><![CDATA[<p dir="auto">E la query banale tipo</p>
<p dir="auto">SELECT c.*<br />
FROM mos_content AS c<br />
ORDER BY c.access</p>
<p dir="auto">Non da problemi???</p>
]]></description><link>https://dev.connect.gt/post/354649</link><guid isPermaLink="true">https://dev.connect.gt/post/354649</guid><dc:creator><![CDATA[dusy]]></dc:creator><pubDate>Fri, 04 Aug 2006 09:47:03 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 09:39:45 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>Dusy</strong></p>
<p dir="auto">Si scusa per la FROM ma l'errore che ti dava all'inizio qual'era???</p>
</blockquote>
<p dir="auto">#1054 - Unknown column 'c.access' in 'on clause'</p>
]]></description><link>https://dev.connect.gt/post/354658</link><guid isPermaLink="true">https://dev.connect.gt/post/354658</guid><dc:creator><![CDATA[raffox76]]></dc:creator><pubDate>Fri, 04 Aug 2006 09:39:45 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 09:00:54 GMT]]></title><description><![CDATA[<p dir="auto">Si scusa per la FROM ma l'errore che ti dava all'inizio qual'era???</p>
]]></description><link>https://dev.connect.gt/post/354643</link><guid isPermaLink="true">https://dev.connect.gt/post/354643</guid><dc:creator><![CDATA[dusy]]></dc:creator><pubDate>Fri, 04 Aug 2006 09:00:54 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 08:32:09 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>Dusy</strong></p>
<p dir="auto">Prova così...</p>
<p dir="auto"><strong>SELECT</strong><br />
<strong>c.*,</strong><br />
<strong><a href="http://g.name" rel="nofollow ugc">g.name</a> AS groupname,</strong><br />
<strong><a href="http://cc.name" rel="nofollow ugc">cc.name</a>,</strong><br />
<strong><a href="http://u.name" rel="nofollow ugc">u.name</a> AS editor,</strong><br />
<strong>f.content_id AS frontpage, s.title AS section_name, <a href="http://v.name" rel="nofollow ugc">v.name</a> AS author</strong><br />
<strong>LEFT JOIN (mos_groups AS g, mos_users AS u, mos_users AS v, mos_content_frontpage AS f)</strong><br />
<strong>ON (<a href="http://g.id" rel="nofollow ugc">g.id</a> = c.access AND <a href="http://u.id" rel="nofollow ugc">u.id</a> = c.checked_out AND c.created_by AND f.content_id = <a href="http://c.id" rel="nofollow ugc">c.id</a>)</strong><br />
<strong>WHERE c.state &gt;= 0 AND <a href="http://c.catid=cc.id" rel="nofollow ugc">c.catid=cc.id</a> AND <a href="http://cc.section=s.id" rel="nofollow ugc">cc.section=s.id</a> AND s.scope='content' ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering LIMIT 0,10</strong></p>
</blockquote>
<p dir="auto">e cmq mettendo la clausa FORM come l'originale l'errore è sempre identico:</p>
<p dir="auto">#1054 - Unknown column 'c.access' in 'on clause'</p>
]]></description><link>https://dev.connect.gt/post/354656</link><guid isPermaLink="true">https://dev.connect.gt/post/354656</guid><dc:creator><![CDATA[raffox76]]></dc:creator><pubDate>Fri, 04 Aug 2006 08:32:09 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 08:29:32 GMT]]></title><description><![CDATA[<p dir="auto">ancora non và, ma nella tua select manca la clausola from ???</p>
<p dir="auto">l'errore che mi dà cmq è:</p>
<p dir="auto">#1064 - 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 'LEFT JOIN (mos_groups AS g, mos_users AS u, mos_users AS v, mos_content_frontpag' at line 2</p>
]]></description><link>https://dev.connect.gt/post/354653</link><guid isPermaLink="true">https://dev.connect.gt/post/354653</guid><dc:creator><![CDATA[raffox76]]></dc:creator><pubDate>Fri, 04 Aug 2006 08:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to HELP con MySql5 e query on Fri, 04 Aug 2006 08:13:03 GMT]]></title><description><![CDATA[<p dir="auto">Prova così...</p>
<p dir="auto"><strong>SELECT</strong><br />
<strong>c.*,</strong><br />
<strong><a href="http://g.name" rel="nofollow ugc">g.name</a> AS groupname,</strong><br />
<strong><a href="http://cc.name" rel="nofollow ugc">cc.name</a>,</strong><br />
<strong><a href="http://u.name" rel="nofollow ugc">u.name</a> AS editor,</strong><br />
<strong>f.content_id AS frontpage, s.title AS section_name, <a href="http://v.name" rel="nofollow ugc">v.name</a> AS author</strong><br />
<strong>LEFT JOIN (mos_groups AS g, mos_users AS u, mos_users AS v, mos_content_frontpage AS f)</strong><br />
<strong>ON (<a href="http://g.id" rel="nofollow ugc">g.id</a> = c.access AND <a href="http://u.id" rel="nofollow ugc">u.id</a> = c.checked_out AND c.created_by AND f.content_id = <a href="http://c.id" rel="nofollow ugc">c.id</a>)</strong><br />
<strong>WHERE c.state &gt;= 0 AND <a href="http://c.catid=cc.id" rel="nofollow ugc">c.catid=cc.id</a> AND <a href="http://cc.section=s.id" rel="nofollow ugc">cc.section=s.id</a> AND s.scope='content' ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering LIMIT 0,10</strong></p>
]]></description><link>https://dev.connect.gt/post/354641</link><guid isPermaLink="true">https://dev.connect.gt/post/354641</guid><dc:creator><![CDATA[dusy]]></dc:creator><pubDate>Fri, 04 Aug 2006 08:13:03 GMT</pubDate></item></channel></rss>