<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Custom Magento Grid with Ambiguous Column on Filter</title>
	<atom:link href="http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/</link>
	<description>I waste my time so that you don't have to...</description>
	<lastBuildDate>Thu, 15 Jul 2010 23:21:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: OSdave</title>
		<link>http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/comment-page-1/#comment-5113</link>
		<dc:creator>OSdave</dc:creator>
		<pubDate>Sat, 10 Jul 2010 21:49:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=486#comment-5113</guid>
		<description>thanks man, this was really helpfull. I hope you&#039;ll find time to write some more interesting magento snippets like this one.</description>
		<content:encoded><![CDATA[<p>thanks man, this was really helpfull. I hope you&#8217;ll find time to write some more interesting magento snippets like this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zzandry</title>
		<link>http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/comment-page-1/#comment-4982</link>
		<dc:creator>zzandry</dc:creator>
		<pubDate>Wed, 31 Mar 2010 19:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=486#comment-4982</guid>
		<description>Thanks guy, it&#039;s a big help for me</description>
		<content:encoded><![CDATA[<p>Thanks guy, it&#8217;s a big help for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Wright</title>
		<link>http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/comment-page-1/#comment-4344</link>
		<dc:creator>Will Wright</dc:creator>
		<pubDate>Mon, 01 Feb 2010 15:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=486#comment-4344</guid>
		<description>My guess is that it&#039;s the left join on the sub-query that&#039;s causing this error:
LEFT OUTER JOIN (
               SELECT user_id, count(*) AS properties_count
               FROM properties
               GROUP BY user_id
       ) AS properties_count ON properties_count.user_id = users.user_id

Does the query work without this join?</description>
		<content:encoded><![CDATA[<p>My guess is that it&#8217;s the left join on the sub-query that&#8217;s causing this error:<br />
LEFT OUTER JOIN (<br />
               SELECT user_id, count(*) AS properties_count<br />
               FROM properties<br />
               GROUP BY user_id<br />
       ) AS properties_count ON properties_count.user_id = users.user_id</p>
<p>Does the query work without this join?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikolay</title>
		<link>http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/comment-page-1/#comment-4304</link>
		<dc:creator>nikolay</dc:creator>
		<pubDate>Fri, 29 Jan 2010 17:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=486#comment-4304</guid>
		<description>This code:
$query = &quot;
	SELECT
		users.user_id, users.email, 
		users.first_name, users.last_name, 
		users.last_login, users.created, users.status,
		countries.name AS country, provinces.name AS province, cities.name AS city, districts.name AS district,
		properties_count.properties_count
	FROM users
	LEFT OUTER JOIN countries ON countries.country_id = users.country_id
	LEFT OUTER JOIN provinces ON provinces.province_id = users.province_id
	LEFT OUTER JOIN cities ON cities.city_id = users.city_id
	LEFT OUTER JOIN districts ON districts.district_id = users.district_id
	LEFT OUTER JOIN (
		SELECT user_id, count(*) AS properties_count
		FROM properties
		GROUP BY user_id
	) AS properties_count ON properties_count.user_id = users.user_id
&quot;;
id giving me the same error! Can you help me?</description>
		<content:encoded><![CDATA[<p>This code:<br />
$query = &#8221;<br />
	SELECT<br />
		users.user_id, users.email,<br />
		users.first_name, users.last_name,<br />
		users.last_login, users.created, users.status,<br />
		countries.name AS country, provinces.name AS province, cities.name AS city, districts.name AS district,<br />
		properties_count.properties_count<br />
	FROM users<br />
	LEFT OUTER JOIN countries ON countries.country_id = users.country_id<br />
	LEFT OUTER JOIN provinces ON provinces.province_id = users.province_id<br />
	LEFT OUTER JOIN cities ON cities.city_id = users.city_id<br />
	LEFT OUTER JOIN districts ON districts.district_id = users.district_id<br />
	LEFT OUTER JOIN (<br />
		SELECT user_id, count(*) AS properties_count<br />
		FROM properties<br />
		GROUP BY user_id<br />
	) AS properties_count ON properties_count.user_id = users.user_id<br />
&#8220;;<br />
id giving me the same error! Can you help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Wright</title>
		<link>http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/comment-page-1/#comment-4199</link>
		<dc:creator>Will Wright</dc:creator>
		<pubDate>Tue, 19 Jan 2010 15:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=486#comment-4199</guid>
		<description>Thanks for the update!</description>
		<content:encoded><![CDATA[<p>Thanks for the update!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruben Marques</title>
		<link>http://www.spinonesolutions.com/2010/01/custom-magento-grid-with-ambiguous-column-on-filter/comment-page-1/#comment-4194</link>
		<dc:creator>Ruben Marques</dc:creator>
		<pubDate>Tue, 19 Jan 2010 11:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=486#comment-4194</guid>
		<description>Hi Will, it worked for me but with a little change.
Instead of 

$collection = Mage::getResourceModel(&#039;spinonesolutions_storelocator/retailer_collection&#039;);  

I used 

$collection = Mage::getModel(&#039;spinonesolutions_storelocator/retailer_collection&#039;)-&gt;getCollection();

If this change isn&#039;t done, a warning will appear saying that getSelect() is not defined.</description>
		<content:encoded><![CDATA[<p>Hi Will, it worked for me but with a little change.<br />
Instead of </p>
<p>$collection = Mage::getResourceModel(&#8216;spinonesolutions_storelocator/retailer_collection&#8217;);  </p>
<p>I used </p>
<p>$collection = Mage::getModel(&#8216;spinonesolutions_storelocator/retailer_collection&#8217;)-&gt;getCollection();</p>
<p>If this change isn&#8217;t done, a warning will appear saying that getSelect() is not defined.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
