$totalCount=get_data("select a.guid from {$CONFIG->dbprefix}users_entity as a,{$CONFIG->dbprefix}entities as b where a.guid =b.guid and b.enabled = 'yes' order by a.name ASC");
//exit;
$offset=get_input('offset');
if(empty($offset))
$offset=0;
$root=$CONFIG->wwwroot;
$limit=10;
$end=$limit;
$allusers=get_data("select a.guid from {$CONFIG->dbprefix}users_entity as a,{$CONFIG->dbprefix}entities as b where a.guid =b.guid and b.enabled = 'yes' order by a.name ASC limit $offset,$end");
$count=sizeof($totalCount);
if($photofilter==1){//if Applied both condition
$allusers=get_data("select a.guid from {$CONFIG->dbprefix}users_entity as a,{$CONFIG->dbprefix}entities as b where a.guid =b.guid and b.enabled = 'yes' order by a.name ASC");
$allusers=get_data("select a.guid from {$CONFIG->dbprefix}users_entity as a,{$CONFIG->dbprefix}entities as b where a.guid =b.guid and b.enabled = 'yes' order by a.name ASC");