Pastoid

not:id problems

The page you are looking at now is at this URL: http://pastoid.com/atc

This paste was last updated on March 18, 2009 at 12:19 pm.

Pasted Coderaw

SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous in system/classes/databaseconnection.php line 289
 
$tags = is_array( $post->tags ) ? array_keys( $post->tags ) : array() ;
$theme->related_entry = array();
$theme->related_entry = Posts::get(
	array(
		'content_type' => Post::type( 'entry' ),
		'status' => Post::status( 'published' ),
		'limit' => Options::get( 'related_posts__count' ),
		'not:id' => $post->id,
		'tag_slug' => $tags
	 ) );
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
www.bing.com 6
search.live.com 1
Is this paste spam?
<Hide