Hi Folks-

I want to create an internal page view of site users ONLY for site administrators. I can do this fine, and I generate a table with the following column headers:
Uid User Roles City Province CO Last access Last login Edit E-mail

However, I want to see first names, not just usernames. So when I try to add ANY field from the profiles...
Profile: First Name
or
Profile: Last Name

I get errors like the following:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-first_value FROM users users LEFT JOIN location_instance location_instance O' at line 9 query: SELECT DISTINCT(users.uid) AS uid, users.name AS users_name, location.city AS location_city, location.province AS location_province, location.country AS location_country, users.access AS users_access, users.login AS users_login, users.mail AS users_mail, profile_values_profile_name-first.value AS profile_values_profile_name-first_value FROM users users LEFT JOIN location_instance location_instance ON users.uid = location_instance.uid LEFT JOIN location location ON location_instance.lid = location.lid LEFT JOIN profile_values profile_values_profile_name-first ON users.uid = profile_values_profile_name-first.uid AND profile_values_profile_name-first.fid = '4' ORDER BY uid DESC in /home/mysite.com/sites/all/modules/views/includes/view.inc on line 759.

Comments

uufsm’s picture

Answered at http://drupal.org/node/497936 : Don't use hyphens in profile names.