Fixed the query error while sending newsletter (see #1)