Remove duplicate list_permission_templates from users.inc.php
Fix limit/offset bug in PDOCommon.class.php