select s.*,u.username,u.fullname,u.avatar,p.uid as wall_uid,p.type as page_type from jcow_streams as s left join jcow_accounts as u on u.id=s.uid left join jcow_pages as p on p.id=s.wall_id where (s.wall_id in() ) and s.stuff_id=0 and (p.type='group' or (s.uid=p.uid and (p.type='u' or p.type='page') and (s.type=0 or s.uid in() ) ) ) and s.hide!=1 order by s.id desc limit 11 offset 0

SQL err: