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 item_module = 'publications' and language = 1' at line 1
select `tags`.* from `tags` where item_id in () and item_module = 'publications' and language = 1
select `m`.*, `t`.*, `c`.*, 1 as `select`, 1 as `view`, 1 as `modify`, 1 as `use`, 1 as `admin` from `publications` as `m` left join `publications_trans` as `t` on (t.item = m.id and t.language = '1') left join `common` as `c` on (c.item = m.id and c.module = 'publications') left join `access` as `s` on (s.item = m.id and s.module = 'publications' and s.group = 0) left join `access` as `v` on (v.item = m.id and v.module = 'publications' and v.group = 0) left join `access` as `e` on (e.item = m.id and e.module = 'publications' and e.group = 0) left join `access` as `x` on (x.item = m.id and x.module = 'publications' and x.group = 0) left join `access` as `a` on (a.item = m.id and a.module = 'publications' and a.group = 0) where topic = ? and m.id < ? group by `id` order by m.id desc limit 0, 1
select `m`.*, `t`.*, `c`.*, 1 as `select`, 1 as `view`, 1 as `modify`, 1 as `use`, 1 as `admin` from `publications` as `m` left join `publications_trans` as `t` on (t.item = m.id and t.language = '1') left join `common` as `c` on (c.item = m.id and c.module = 'publications') left join `access` as `s` on (s.item = m.id and s.module = 'publications' and s.group = 0) left join `access` as `v` on (v.item = m.id and v.module = 'publications' and v.group = 0) left join `access` as `e` on (e.item = m.id and e.module = 'publications' and e.group = 0) left join `access` as `x` on (x.item = m.id and x.module = 'publications' and x.group = 0) left join `access` as `a` on (a.item = m.id and a.module = 'publications' and a.group = 0) where topic = ? and m.id > ? group by `id` order by m.id limit 0, 1