# Post.where() causing 500 error

**URL:** <https://meta.discourse.org/t/post-where-causing-500-error/40896>\
**Category:** Development\
**Created:** [11 مارس 2016، 10:33ص UTC](https://meta.discourse.org/t/post-where-causing-500-error/40896 "2016-03-11T10:33:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [11 مارس 2016، 2:12م UTC](https://meta.discourse.org/t/post-where-causing-500-error/40896/6 "2016-03-11T14:12:49Z")

</div>

Try `Post.where(user_id IN (?) OR topic_id IN (?), [1,2], [4,5])`

---

_[View the full topic](https://meta.discourse.org/t/post-where-causing-500-error/40896)._
