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 g.gallery_type = gc.category_id and g.gallery_status = 1' at line 1

select g.gallery_id, g.gallery_name, g.gallery_description, g.gallery_image, g.gallery_iframe, g.gallery_animation, gc.category_filepath from galleries g, galleries_categories gc where g.gallery_id = and g.gallery_type = gc.category_id and g.gallery_status = 1

[TEP STOP]