Błąd: 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 'AND product.id=avalue.id_product AND avalue.id_attribute=attribute.id AND attrib' at line 1
Zapytanie: SELECT attribute_desc.name AS name, avalue_desc.value AS value FROM avalue,product,attribute_desc,attribute,avalue_desc,lang WHERE product.id= AND product.id=avalue.id_product AND avalue.id_attribute=attribute.id AND attribute.id=attribute_desc.id_attribute AND avalue.id=avalue_desc.id_avalue AND attribute_desc.lang=lang.id AND avalue_desc.lang=lang.id AND lang.id=1 AND attribute.id <=6 ORDER BY attribute.sort