New Zenner
- Join Date:
- Jun 2006
- Location:
- Lowell, MA
- Posts:
- 3
- Plugin Contributions:
- 0
1064 error happened by clicking check-out button
When the check out button is clicked, the error message appears:
1064 You have an error in your SQL syntax near '(address_book ab left join zones z on (ab.ent' at line 7
in:
[select c.customers_firstname, c.customers_lastname, c.customers_telephone, c.customers_email_address, ab.entry_company, ab.entry_street_address, ab.entry_suburb, ab.entry_postcode, ab.entry_city, ab.entry_zone_id, z.zone_name, co.countries_id, co.countries_name, co.countries_iso_code_2, co.countries_iso_code_3, co.address_format_id, ab.entry_state from customers c, (address_book ab left join zones z on (ab.entry_zone_id = z.zone_id) left join countries co on (ab.entry_country_id = co.countries_id) ) where c.customers_id = '3' and ab.customers_id = '3' and c.customers_default_address_id = ab.address_book_id]
I saw some posting regarding 1064 error, but their conditions are different from mine and not sure it's ok to follow one of their responses or not since I'm not familiar with SQL and PHP at all.
My ZenCart version is 1.3.0
I don't know why this is happening and how to fix. Please help.