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 ) );