$qryquicksearch1="select count(*) from cr_featured_profiles, cr_members, cr_photos where cr_featured_profiles.userid=cr_members.id and cr_photos.main='1' and cr_photos.userid=cr_members.userid and cr_members.gender='1' or cr_members.gender='2'";