<?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: Clean Up WordPress Revisions Using a MySQL Multi-Table Delete</title>
	<atom:link href="http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete</link>
	<description>Free initial consultation. Flat fees. Clear and open communication. Professional web site development for your small business.</description>
	<lastBuildDate>Sun, 19 Feb 2012 01:41:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: ambrosite</title>
		<link>http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete#comment-8649</link>
		<dc:creator>ambrosite</dc:creator>
		<pubDate>Wed, 14 Sep 2011 14:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.ambrosite.com/?p=385#comment-8649</guid>
		<description>@Chris There is a thread here discussing methods for removing orphaned records from wp_term_relationships:

http://wordpress.org/support/topic/plugin-wp-optimize-wp_term_relationships?replies=10</description>
		<content:encoded><![CDATA[<p>@Chris There is a thread here discussing methods for removing orphaned records from wp_term_relationships:</p>
<p><a href="http://wordpress.org/support/topic/plugin-wp-optimize-wp_term_relationships?replies=10" rel="nofollow">http://wordpress.org/support/topic/plugin-wp-optimize-wp_term_relationships?replies=10</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete#comment-8645</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 14 Sep 2011 10:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.ambrosite.com/?p=385#comment-8645</guid>
		<description>What do you do if you followed another tutorial that simply deleted WHERE post_type = ‘revision’? 

Now there is no reference :/ doh.</description>
		<content:encoded><![CDATA[<p>What do you do if you followed another tutorial that simply deleted WHERE post_type = ‘revision’? </p>
<p>Now there is no reference :/ doh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nemnhe</title>
		<link>http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete#comment-8057</link>
		<dc:creator>nemnhe</dc:creator>
		<pubDate>Fri, 05 Aug 2011 22:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.ambrosite.com/?p=385#comment-8057</guid>
		<description>It works now. it should be: &#039;revision&#039;, not ‘revision’.
result: &quot;Deleted rows: 19 (Query took 0.0158 sec)&quot;
I use SQL statement given in the SitePoint.
the second statement result error. My WP version 3.2.1
then i add: 
define(&#039;WP_POST_REVISIONS&#039;, false); // Disable Revision
on my wp-config.php or
define(&#039;AUTOSAVE_INTERVAL&#039;, 120 ); // Default value is 60 seconds.
define(’WP_POST_REVISIONS’, 5); // Number of revisions to save.
thanks :)</description>
		<content:encoded><![CDATA[<p>It works now. it should be: &#8216;revision&#8217;, not ‘revision’.<br />
result: &#8220;Deleted rows: 19 (Query took 0.0158 sec)&#8221;<br />
I use SQL statement given in the SitePoint.<br />
the second statement result error. My WP version 3.2.1<br />
then i add:<br />
define(&#8216;WP_POST_REVISIONS&#8217;, false); // Disable Revision<br />
on my wp-config.php or<br />
define(&#8216;AUTOSAVE_INTERVAL&#8217;, 120 ); // Default value is 60 seconds.<br />
define(’WP_POST_REVISIONS’, 5); // Number of revisions to save.<br />
thanks :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nemnhe</title>
		<link>http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete#comment-8056</link>
		<dc:creator>nemnhe</dc:creator>
		<pubDate>Fri, 05 Aug 2011 21:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ambrosite.com/?p=385#comment-8056</guid>
		<description>Error
SQL query:
DELETE a,
b,
c FROM dod_posts a LEFT JOIN dod_term_relationships b ON ( a.ID = b.object_id ) LEFT JOIN dod_postmeta c ON ( a.ID = c.post_id ) WHERE a.post_type = ‘revision’;
MySQL said: Documentation
#1054 - Unknown column &#039;â€˜revisionâ€™&#039; in &#039;where clause&#039; 

and
result for:
DELETE a,
b,c FROM dod_posts a LEFT JOIN dod_term_relationships b ON ( a.ID = b.object_id ) LEFT JOIN dod_postmeta c ON ( a.ID = c.post_id ) LEFT JOIN dod_term_taxonomy d ON ( b.term_taxonomy_id = d.term_taxonomy_id ) WHERE a.post_type = &#039;revision&#039; AND d.taxonomy != &#039;link_category&#039;;
is &quot;Deleted rows: 0 (Query took 0.0128 sec)&quot;
(my prefix: dod_)
Please help..
What about export the SQL (exclude revision) then import ?
then using bigdump.php for large database.</description>
		<content:encoded><![CDATA[<p>Error<br />
SQL query:<br />
DELETE a,<br />
b,<br />
c FROM dod_posts a LEFT JOIN dod_term_relationships b ON ( a.ID = b.object_id ) LEFT JOIN dod_postmeta c ON ( a.ID = c.post_id ) WHERE a.post_type = ‘revision’;<br />
MySQL said: Documentation<br />
#1054 &#8211; Unknown column &#8216;â€˜revisionâ€™&#8217; in &#8216;where clause&#8217; </p>
<p>and<br />
result for:<br />
DELETE a,<br />
b,c FROM dod_posts a LEFT JOIN dod_term_relationships b ON ( a.ID = b.object_id ) LEFT JOIN dod_postmeta c ON ( a.ID = c.post_id ) LEFT JOIN dod_term_taxonomy d ON ( b.term_taxonomy_id = d.term_taxonomy_id ) WHERE a.post_type = &#8216;revision&#8217; AND d.taxonomy != &#8216;link_category&#8217;;<br />
is &#8220;Deleted rows: 0 (Query took 0.0128 sec)&#8221;<br />
(my prefix: dod_)<br />
Please help..<br />
What about export the SQL (exclude revision) then import ?<br />
then using bigdump.php for large database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terescia</title>
		<link>http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete#comment-4609</link>
		<dc:creator>Terescia</dc:creator>
		<pubDate>Fri, 21 Jan 2011 18:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ambrosite.com/?p=385#comment-4609</guid>
		<description>Thank you for writing this up. I actually landed on the Sitepoint article but followed the link here. I had used a similar query in the past and had this exact same thing happen to me. Several of my categories disappeared from a group of my links and I had no idea this was the cause. I&#039;ve saved this bit of code and will be using it in the future instead. Thanks again!</description>
		<content:encoded><![CDATA[<p>Thank you for writing this up. I actually landed on the Sitepoint article but followed the link here. I had used a similar query in the past and had this exact same thing happen to me. Several of my categories disappeared from a group of my links and I had no idea this was the cause. I&#8217;ve saved this bit of code and will be using it in the future instead. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gravity</title>
		<link>http://www.ambrosite.com/blog/clean-up-wordpress-revisions-using-a-mysql-multi-table-delete#comment-1570</link>
		<dc:creator>Gravity</dc:creator>
		<pubDate>Tue, 17 Aug 2010 06:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.ambrosite.com/?p=385#comment-1570</guid>
		<description>Thank you for posting this. Exactly what I was googling for.</description>
		<content:encoded><![CDATA[<p>Thank you for posting this. Exactly what I was googling for.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

