ActiveRecord::RecordNotFound in PostsController#show

Couldn't find Post with 'id'=731 [WHERE `posts`.`status` = ?]

Extracted source (around line #20):
18
19
20
21
22
23
              
# GET /posts/1.xml
def show
@post = Post.active.find(params[:id])
# @posts = Post.active.find(:all, :conditions => "id != #{@post.id} AND status = true", :limit => 4, :order => "created_at DESC")
@posts = Post.active.where("id != ? AND status = ?", @post.id, true).order(created_at: :desc).limit(4)
@comments = @post.comments

Rails.root: /var/www/ambpiaui/releases/31

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"created_at"=>"2019-01-22",
 "id"=>"731",
 "title"=>"xvi-congresso-medico-do-piaui-09-a-11-de-agosto-2018"}

Response

Headers:

None