# 500 Error message when I make a topic in a certain category (Infinite Flight Community)

**URL:** <https://meta.discourse.org/t/500-error-message-when-i-make-a-topic-in-a-certain-category-infinite-flight-community/54730>\
**Category:** Bug\
**Created:** [Dezembro 24, 2016, 3:42am UTC](https://meta.discourse.org/t/500-error-message-when-i-make-a-topic-in-a-certain-category-infinite-flight-community/54730 "2016-12-24T03:42:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Dezembro 27, 2016, 6:57am UTC](https://meta.discourse.org/t/500-error-message-when-i-make-a-topic-in-a-certain-category-infinite-flight-community/54730/3 "2016-12-27T06:57:53Z")

</div>

There is a nasty error in Active Record, where adding a `#includes` on a model can cause various queries to explode when we pluck ids.

`op_likes` ordering (order by number of likes on first post) was a pretty hidden feature only exposed via the default category order dialog.

We are pulling the feature altogether, @techAPJ will pull it and add a migration that remaps this to order by likes for categories that want to specify it as ordering.

In the meantime @techAPJ changed the offending category on infinite flight to order by likes by default.

---

_[View the full topic](https://meta.discourse.org/t/500-error-message-when-i-make-a-topic-in-a-certain-category-infinite-flight-community/54730)._
