Query 'SELECT *
FROM jddshop_products
INNER JOIN jddshop_categories_description
ON jddshop_products.master_categories_id=jddshop_categories_description.categories_id
WHERE manufacturers_id = 'Embellishments'
AND products_date_added < convert(varchar(8), getdate()-180, 12)
ORDER BY jddshop_products.products_date_added DESC
' failed with error message: "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 'varchar(8), getdate()-180, 12)
ORDER BY jddshop_products.products_date_add' at line 6"