I don't think you can use single quotes here due to `$sql_from`. I'd rather change the spacing between the dot and the apostrophe right of PROFILE_FIELDS_DATA_TABLE.