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 ' 16)) WHERE P.`deleted` = 0 AND P.`cat_id` = '1'' at line 1
SQL:
SELECT Count(*) FROM cloxx_pg AS P INNER JOIN cloxx_pg_cat AS R ON (P.`id` = R.`photo_id` AND R.`deleted` = 0 AND R.`catalogue_id` IN (11/, 16)) WHERE P.`deleted` = 0 AND P.`cat_id` = '1'
in mysql.class.php [454]