1064 - 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 's%' OR pd.products_name LIKE 'Novelty%' OR pd.products_name LIKE 'Chairs%' OR...' at line 1
select DISTINCT(p.products_id), p.products_image, p.products_price, p.products_model, pd.products_name, p.products_tax_class_id from products p, products_description pd, products_to_categories pc where (pd.products_name LIKE 'Crystal%' OR pd.products_name LIKE 'Stiletto%' OR pd.products_name LIKE 'Children's%' OR pd.products_name LIKE 'Novelty%' OR pd.products_name LIKE 'Chairs%' OR pd.products_name LIKE 'Chair%' OR pc.categories_id="134") and p.products_status = '1' and p.products_id = pc.products_id and p.products_id = pd.products_id and p.products_id != '18287' and pc.categories_id = '134' and pd.language_id = '1' order by RAND() asc limit 5