An error occured. select p.*
from pages p
LEFT JOIN perm_pages perm on p.id=perm.id_obj
where p.ident='front' and ((p.for_all=1) or ( perm.id_grp in (1) and perm.perm LIKE '%r%')) group by p.id
Отказ в доступе - Автобаза №1
An error occured. select p.id, p.ident, p.name, p.url, p.page_mod, p.full_path
from pages p
LEFT JOIN perm_pages perm on p.id=perm.id_obj
where p.parent=1 and ((p.for_all=1) or ( perm.id_grp in (1) and perm.perm LIKE '%r%')) and in_menu=1
group by p.id
order by posit