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 'Bed%' OR pd.products_name LIKE 'in%' OR pd.products_name LIKE 'Rubberwood%' O...' 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 'Toronto%' OR pd.products_name LIKE 'White%' OR pd.products_name LIKE '3'%' OR pd.products_name LIKE 'Bed%' OR pd.products_name LIKE 'in%' OR pd.products_name LIKE 'Rubberwood%' OR pc.categories_id="") and p.products_status = '1' and p.products_id = pc.products_id and p.products_id = pd.products_id and p.products_id != '10610' and pc.categories_id = '0' and pd.language_id = '1' order by RAND() asc limit 5