Title: therealoc's Replies | WordPress.org

---

# therealoc

  [  ](https://wordpress.org/support/users/therealoc/)

 *   [Profile](https://wordpress.org/support/users/therealoc/)
 *   [Topics Started](https://wordpress.org/support/users/therealoc/topics/)
 *   [Replies Created](https://wordpress.org/support/users/therealoc/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/therealoc/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/therealoc/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/therealoc/engagements/)
 *   [Favorites](https://wordpress.org/support/users/therealoc/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Exclude current page from MySQL results](https://wordpress.org/support/topic/exclude-current-page-from-mysql-results/)
 *  Thread Starter [therealoc](https://wordpress.org/support/users/therealoc/)
 * (@therealoc)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/exclude-current-page-from-mysql-results/#post-1037843)
 * Have actually just found a way of doing it that is really easy so i though i 
   would put it up for anyone who is interested. If you need to exclude something
   such as the ID of the current page from a MySQL statement then just add something
   like `WHERE ID != $post->ID` when selecting something something using MySQL. 
   If you don’t know your MySQL != stands for not equal too (just in case). Hope
   this helps anyone else who had this same problem.

Viewing 1 replies (of 1 total)