Would doing an INNER JOIN or LEFT JOIN or RIGHT JOIN work better for this? Or is there a better way to do this?

```
$customSQL = "SELECT * FROM customFieldNames";
                    $customQRY = mysql_query($customSQL);
                    while ($customOBJ = mysql_fetch_object($customQRY)){
                        $cvSQL = "SELECT `VALUE` FROM customFieldValues WHERE FIELDID = '".$customOBJ->FIELDID."' AND MEMID = '".$memFetch['MEMID']."'";
                        $cvQRY = mysql_query($cvSQL);
                        $cvFetch = mysql_fetch_array($cvQRY);
                        echo '<tr><td>'.$customOBJ->FIELDNAME.'</td><td><input type="text" name="cv_'.$customOBJ->FIELDNAME.'" value="'.$cvFetch['VALUE'].'" /></td></tr>';
                    }

```