Title: Throwing notices from SQL problem
Last modified: May 16, 2018

---

# Throwing notices from SQL problem

 *  [richplane](https://wordpress.org/support/users/richplane/)
 * (@richplane)
 * [8 years ago](https://wordpress.org/support/topic/throwing-notices-from-sql-problem/)
 * Using latest version of WP and Draft Notify I’m getting notices thrown when saving
   posts:
 * Notice: Trying to get property of non-object in … wp-content\plugins\draft-notify\
   draft-notify.php on line 58
 * Looking at the query in the code I think there’s a problem with how you’ve written
   your joins – you’ve got three LEFT JOINS to usermeta but you’re selecting from
   the posts and users table without joining them. If I fix this, the query works.
 * I may have misunderstood what you’re doing with this query but there’s clearly
   a problem where no rows are being returned which is breaking the next line of
   code.

Viewing 1 replies (of 1 total)

 *  Thread Starter [richplane](https://wordpress.org/support/users/richplane/)
 * (@richplane)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/throwing-notices-from-sql-problem/#post-10395946)
 * Related to this I’m also seeing ‘Undefined property: $post_parent’ because post_parent
   isn’t among the columns being returned by the query!
 * Would you like me to submit a pull request to the SVN repo with fixes for these?

Viewing 1 replies (of 1 total)

The topic ‘Throwing notices from SQL problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/draft-notify.svg)
 * [Draft Notify](https://wordpress.org/plugins/draft-notify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/draft-notify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/draft-notify/)
 * [Active Topics](https://wordpress.org/support/plugin/draft-notify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/draft-notify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/draft-notify/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [richplane](https://wordpress.org/support/users/richplane/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/throwing-notices-from-sql-problem/#post-10395946)
 * Status: not resolved