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 'select c.logo, c.maps, c.teaser, c.homepage, c.customers_email_addr...' at line 2

SELECT COUNT(a.address_book_id) AS total select c.logo, c.maps, c.teaser, c.homepage, c.customers_email_address, a.entry_company, a.entry_street_address, a.entry_postcode, a.entry_city, a.entry_country_id, c.customers_telephone from customers c, address_book a, geo g where a.customers_id = c.customers_id AND a.entry_postcode = g.plz AND a.entry_country_id = g.country_id AND c.customers_gesperrt = 0 AND (c.category = 'bike' or c.category = 'sport') AND c.customers_reseller = 1 AND a.typ != 'R' AND c.website_show = 1 group by a.address_book_id order by a.entry_company

[TEP STOP]