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 '? group by `id`' at line 8
select `m`.*, `t`.*, `c`.*, 1 as `select`, 1 as `view`, 1 as `modify`, 1 as `use`, 1 as `admin` from `texts` as `m` left join `texts_trans` as `t` on (t.item = m.id and t.language = '') left join `common` as `c` on (c.item = m.id and c.module = 'texts') left join `access` as `s` on (s.item = m.id and s.module = 'texts' and s.group = 0) left join `access` as `v` on (v.item = m.id and v.module = 'texts' and v.group = 0) left join `access` as `e` on (e.item = m.id and e.module = 'texts' and e.group = 0) left join `access` as `x` on (x.item = m.id and x.module = 'texts' and x.group = 0) left join `access` as `a` on (a.item = m.id and a.module = 'texts' and a.group = 0) where section = ? group by `id`