SELECT id FROM `modx_user_attributes` WHERE (`extended` LIKE '%testfield%')
$c = $modx->newQuery('modUserProfile');
$c->where(array(
'extended:LIKE' => '%' . $company . '%',
'AND:extended:LIKE' => '%' . $showdate . '%',
//'fullname:LIKE' => 'A%',
));
$count = $modx->getCount('modUserProfile',$c);
echo 'UserProfile count: ' . $count . '</br>';
$profiles = $modx->getCollection('modUserProfile',$c);