SQL Error : 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 pic_cat_id = cat_id' at line 4
SELECT COUNT(pic_id) AS count
FROM phpbb_album, phpbb_album_cat
WHERE pic_user_id = 171
AND cat_id IN ()
AND pic_cat_id = cat_id