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 a.act=\'Y\'\' at line 1
select count(*) as cnt from catalogue as a left join `download_imgs` as b on( left join `catalogue` as c on( left join `catalogue` as d on( left join `basket_tmp` as e on( and e.sid=\'1265d4b49f00bfbc3fc2b9c662d96bdf\') where a.catalogue_type=1 and a.public=\'Y\' and a.parent_id in () and a.act=\'Y\'
Произошла ошибка при обращении к базе данных.