The below should fix it.
IN: components/com_comprofiler/plugin/user/plug_cbqueryfield/cbqueryfield.php
ON: Line 660
FROM:
Code:
. ", if ( " . $_CB_database->NameQuote( 'fieldlabel' ) . " != '', " . $_CB_database->NameQuote( 'fieldtitle' ) . ", " . $_CB_database->NameQuote( 'fieldlabel' ) . " ) AS " . $_CB_database->NameQuote( 'text' )
TO:
Code:
. ", if ( " . $_CB_database->NameQuote( 'fieldlabel' ) . " != '', " . $_CB_database->NameQuote( 'fieldlabel' ) . ", " . $_CB_database->NameQuote( 'fieldtitle' ) . " ) AS " . $_CB_database->NameQuote( 'text' )
The SQL IF was backwards for its values. If there's a label it should use the label, otherwise it uses value.