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 p.products_id=30051951 AND (cl.manufacturers_id=0 OR cl.manufacturers_id=p' at line 1

SELECT cld.link_title, cld.link_description, cld.link_url FROM categories_links_description cld, categories_links cl, products p WHERE (cl.categories_id=) AND p.products_id=30051951 AND (cl.manufacturers_id=0 OR cl.manufacturers_id=p.manufacturers_id) AND cld.categories_links_id=cl.categories_links_id AND cld.link_active=1 AND cld.link_title!='' AND cld.link_display=1 AND cld.language_id=1