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 cd.categories_id = and cd.language_id = 4' at line 1

select cd.categories_name, cd.categories_descrizione, c.categories_image, c.categories_image1, c.categories_image2, c.categories_image3, c.categories_image4, c.categories_image5, c.categories_image6, c.categories_image7, c.categories_image8, c.categories_pdf1, c.categories_pdf2, c.categories_pdf3 from categories c, categories_description cd where c.categories_id = and cd.categories_id = and cd.language_id = 4