No reason to shout at me, Chuck.
Would you mind to tell me what the big bug is? You have seen my corrected query, right?
I changed the query, because I don't want to send out a notification mail to the user who is submitting the content. The easiest way for me to do that was to exclude his userid in the sql query. AFAIK
your code will send out an email to every person that has activated the notification for that photo and will not exclude the poster.