Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    53
    Plugin Contributions
    0

    Default SQL error when trying to send e-mail.

    Hi all,

    I'm getting SQL errors when trying to email a customer, email coupons etc. I'm running 1.3.8a and have recently moved to a new server (Lunarpages).

    Any help will be much appreciated.

    Here's the error when trying to send a coupon.

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= subdate(now(),INTERVAL 3 MONTH) ORDER BY c.customers_lastname, c.customers_fir' at line 1
    in:
    [select o.date_purchased, c.customers_email_address, c.customers_lastname, c.customers_firstname from customers c, orders o WHERE c.customers_id = o.customers_id AND c.customers_newsletter = 1 GROUP BY c.customers_email_address HAVING max(o.date_purchased) <= subdate(now(),INTERVAL 3 MONTH) ORDER BY c.customers_lastname, c.customers_firstname ASC ]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    Here's the error when trying to email from the customer list.

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= subdate(now(),INTERVAL 3 MONTH) ORDER BY c.customers_lastname, c.customers_fir' at line 1
    in:
    [select o.date_purchased, c.customers_email_address, c.customers_lastname, c.customers_firstname from customers c, orders o WHERE c.customers_id = o.customers_id AND c.customers_newsletter = 1 GROUP BY c.customers_email_address HAVING max(o.date_purchased) <= subdate(now(),INTERVAL 3 MONTH) ORDER BY c.customers_lastname, c.customers_firstname ASC ]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

  2. #2
    Join Date
    Oct 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: SQL error when trying to send e-mail.

    Surely someone has seen this error before and knows how to fix it?

  3. #3
    Join Date
    Oct 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: SQL error when trying to send e-mail.

    I'm not feeling the love

  4. #4
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,930
    Plugin Contributions
    4

    Default Re: SQL error when trying to send e-mail.

    Hi,

    Do you know what version of mySql you are using.

    see your Admin->tools->server info page in the Zen Cart backend

  5. #5
    Join Date
    Oct 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: SQL error when trying to send e-mail.

    Database: MySQL 5.0.67-community

  6. #6
    Join Date
    Oct 2008
    Posts
    53
    Plugin Contributions
    0

    Default Re: SQL error when trying to send e-mail.

    Any further ideas guys i'm really loosing hope with this problem

 

 

Similar Threads

  1. v153 sql error in admin mail.php - send mail and newsletters
    By delia in forum General Questions
    Replies: 1
    Last Post: 1 May 2015, 02:52 AM
  2. E-mail Error when trying to send email
    By weezee in forum General Questions
    Replies: 1
    Last Post: 21 Mar 2013, 10:28 PM
  3. 1064 error when trying to send customer email/newsletter
    By lj20272 in forum General Questions
    Replies: 14
    Last Post: 27 Aug 2012, 08:43 AM
  4. SQL error when trying to install the captcha_verification_antirobot_registration_1.4
    By fiberphile in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 16 Jan 2012, 04:50 PM
  5. Duplicate entry error when trying to send Gift Certificates
    By thegolfguru in forum General Questions
    Replies: 0
    Last Post: 10 Dec 2010, 07:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg