Błąd: 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 'AND
product.id=product_desc.id_product AND
product.id=cat_product.id_prod' at line 17
Zapytanie:
SELECT
product.id AS id,
product_desc.name AS name,
product_desc.m_text AS text,
product_desc.seo,
product.added,
cat_desc.name as catName,
cat_desc.seo as catSeo,
cat.id as catID
FROM
product_desc,
cat,
cat_product,
cat_desc,
product
WHERE
product.id= AND
product.id=product_desc.id_product AND
product.id=cat_product.id_product AND
cat_product.id_cat=cat.id AND
cat.id=cat_desc.id_cat