Я использую следующий запрос SQL:
SELECT package_stats.developer, xf_user.username, xf_user.email, xf_user_profile.homepage, xf_user_profile.location, xf_user_profile.about, xf_user_field_value.field_id, xf_user_field_value.field_value
FROM package_stats, xf_user, xf_user_field_value, xf_user_profile
WHERE xf_user.username = package_stats.developer AND xf_user_field_value.user_id = xf_user.user_id AND xf_user_profile.user_id = xf_user.user_id
Что тянет примерно так:

Мой вопрос заключается в том, могу ли я с помощью SQL-запроса различать значения field_id
в столбцах, чтобы у меня была только одна строка.