Query 'select field_data_field_pwca_num.entity_id as pek, field_pwca_num_value as pno, concat(trim(field_first_name_value),' ',trim(field_surname_value)) as name, phoFile as photo from field_data_field_pwca_num inner join field_data_field_first_name on field_data_field_first_name.entity_id=field_data_field_pwca_num.entity_id inner join field_data_field_surname on field_data_field_surname.entity_id=field_data_field_pwca_num.entity_id left join photos on pilEk=field_data_field_pwca_num.entity_id order by field_pwca_num_value' returned null