Invalid query: 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_template_product_menu_id = 1 AND t.product_template_languages_id ...' at line 1
Whole query: SELECT * FROM product_template_to_type as t INNER JOIN product_menu_template_to_type_mapping as map ON t.product_template_item_id=map.product_template_item_id AND t.product_template_languages_id=map.product_template_languages_id WHERE t.product_template_id = AND product_template_product_menu_id = 1 AND t.product_template_languages_id = 1 ORDER BY t.product_template_order