1064 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 'and (c.products_gender = 'Dzieci��ce' or c.products_brand = '')
and d.langu' at line 7
in:
[SELECT * FROM categories a, categories_description b,products c,products_description d
where c.products_status=1
and a.categories_id = b.categories_id
and a.categories_id = c.master_categories_id
and c.products_id = d.products_id
and a.categories_id =
and (c.products_gender = 'Dzieci��ce' or c.products_brand = '')
and d.language_id = ' 1 ' ORDER BY rand() LIMIT 1]