select cdr_dstname primaryDistrib from tbl_cdr_distributors where ownerid = and fsl_tablecode = and cdr_recordid = select companyname, address, address2, city, state, zipcode, phone, url, cmFirstname, cmLastname, cmEmail, segmentDesc from qmd_operatorDetails