select c.customers_id, CONCAT(c.customers_firstname,' ',c.customers_lastname) as name,c.customers_title, c.customers_email_address, c.customers_group_id, c.customers_group_ra, a.entry_country_id, a.entry_company, cg.customers_group_name, CONCAT(a.entry_street_address,' ',a.entry_city,' ',a.entry_state) as address , a.entry_postcode,a.entry_street_address,a.entry_city,a.entry_state,c.customers_telephone,c.customers_fax,c.customers_cell,c.customers_email_address,c.customers_website, c.customers_status,c.customers_expire_date,c.customers_nature_of_business,c.customers_year_established, c.customers_product_line,c.customers_major_products,c.customers_image,c.customers_color1,c.customers_color2,c.customers_color3 from (customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id ) left join customers_groups cg on c.customers_group_id = cg.customers_group_id where cg.customers_group_show_tax=1 and c.customers_id=
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

select c.customers_id, CONCAT(c.customers_firstname,' ',c.customers_lastname) as name,c.customers_title, c.customers_email_address, c.customers_group_id, c.customers_group_ra, a.entry_country_id, a.entry_company, cg.customers_group_name, CONCAT(a.entry_street_address,' ',a.entry_city,' ',a.entry_state) as address , a.entry_postcode,a.entry_street_address,a.entry_city,a.entry_state,c.customers_telephone,c.customers_fax,c.customers_cell,c.customers_email_address,c.customers_website, c.customers_status,c.customers_expire_date,c.customers_nature_of_business,c.customers_year_established, c.customers_product_line,c.customers_major_products,c.customers_image,c.customers_color1,c.customers_color2,c.customers_color3 from (customers c left join address_book a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id ) left join customers_groups cg on c.customers_group_id = cg.customers_group_id where cg.customers_group_show_tax=1 and c.customers_id=

[STEP STOP]