when go Categories->Additional Images
got below error anyone please help
Additional Images Thumbnail Utility
1064 - You have an error in your SQL syntax near 'on p.products_id = ai.products_id where ptc.categories_id = 37' at line 1
select count(*) as total from products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id left join products_description pd on p.products_id = pd.products_id and pd.language_id = '1' left join products_to_categories ptc on p.products_id = ptc.products_id join additional_images ai on p.products_id = ai.products_id where ptc.categories_id = 37