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=\'3cf503664728ed631a5ea176d3cd9108\') where a.catalogue_type=1 and a.public=\'Y\' and a.parent_id in () and a.act=\'Y\'
Произошла ошибка при обращении к базе данных.