You must have a created_at
field in both the recipes and tags tables. MySQL doesn't know which one it should order by. Where ever you are doing the ordering (in the this_week scope or in the tag method) you need to change this:
order('created_at')
to this:
order('recipes.created_at')
Assuming you want to order by the recipe's field. And if you don't like hardcoding the table name you can use self.class.table_name
and substitute that in.