Hello, Why do back-sql querys like (2=2 OR (ldap_entries.id=ldap_entry_objclasses.entry_id AND ldap_entry_objclasses.oc_name='" /* ')) For what is the 2=2 ? This makes my query very slow. Thanks Thomas -- LiHAS - LinuxHaus Stuttgart Fon: +49 (7 11) 78 28 50 93 Inh.: Adrian Reyer Fax: +49 (7 11) 78 28 50 91 Mail: lihas@lihas.de Linux, Netzwerke, Consulting & Support http://lihas.de/ Vcard http://lihas.de/tho.vcf