SELECT prod.*,comp.logo,comp.domain, comp.url_it AS comp_url_it, comp.url_en AS comp_url_en, comp.title_it AS comp_title_it, comp.title_en AS comp_title_en FROM ori_products AS prod LEFT JOIN ori_companies AS comp ON WHERE comp.evid=1 && prod.evid=1 AND AND (prod.url_en="stampaggio-a-caldo-e-freddo-sapes" OR prod.url_it="stampaggio-a-caldo-e-freddo-sapes") ORDER BY prod.ord DESC LIMIT 1
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 (prod.url_en="stampaggio-a-caldo-e-freddo-sapes" OR prod.url_it="stampaggio-' at line 1