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 'WHERE
p.products_id = '14069'
LIMIT 1' at line 39
SELECT
p.products_id,
p.products_model,
p.products_price,
pd.products_name,
cd.categories_name AS cat_name,
cd.categories_htc_desc_tag AS descr,
td_bij.trads_description AS details_bij,
td_pdta.trads_description AS details_bij_pdta,
td_perl.trads_description AS details_bij_perl,
td_kei.trads_description AS details_bij_kei,
td_bag.trads_description AS details_bij_bag,
td_bo.trads_description AS details_bij_bo,
td_brac.trads_description AS details_bij_brac,
td_col.trads_description AS details_bij_col,
td_opal.trads_description AS details_bij_opal,
pg.customers_group_price
FROM
products p
LEFT JOIN products_certificat pc ON p.products_id = pc.products_id
LEFT JOIN products_description pd ON p.products_id = pd.products_id AND pd.language_id = 5
LEFT JOIN products_to_categories p2c ON p.products_id = p2c.products_id
LEFT JOIN categories c ON p2c.categories_id = c.categories_id
LEFT JOIN categories_description cd ON cd.categories_id = c.categories_id AND cd.language_id = 5
LEFT JOIN trads td_bij ON td_bij.trads_id = pc.details_bij AND td_bij.language_id = 5
LEFT JOIN trads td_pdta ON td_pdta.trads_id = pc.details_bij_pdta AND td_pdta.language_id = 5
LEFT JOIN trads td_perl ON td_perl.trads_id = pc.details_bij_perl AND td_perl.language_id = 5
LEFT JOIN trads td_kei ON td_kei.trads_id = pc.details_bij_kei AND td_kei.language_id = 5
LEFT JOIN trads td_bag ON td_bag.trads_id = pc.details_bij_bag AND td_bag.language_id = 5
LEFT JOIN trads td_bo ON td_bo.trads_id = pc.details_bij_bo AND td_bo.language_id = 5
LEFT JOIN trads td_brac ON td_brac.trads_id = pc.details_bij_brac AND td_brac.language_id = 5
LEFT JOIN trads td_col ON td_col.trads_id = pc.details_bij_col AND td_col.language_id = 5
LEFT JOIN trads td_opal ON td_opal.trads_id = pc.details_bij_opal AND td_opal.language_id = 5
LEFT JOIN products_groups pg ON pg.products_id = p.products_id where products_id = p.products_id AND customers_group_id = '0'
WHERE
p.products_id = '14069'
LIMIT 1
[TEP STOP]