title: Twice a where in a survey
body: <p>Instead of wanting the whole table i only want one result based on a link.</p>
  
  <p>This works:</p>
  
  <pre><code>$BANDID = intval($_GET['BANDID']);
  $sql = "SELECT 
              BANDID, 
              NAAMBAND, 
              CONTACTBAND, 
              GENRE, 
              OMSCHRIJVING, 
              LEDEN, 
              PLAATS, 
              PRIJS, 
              BOEKERID, 
              WEBSITE, 
              YOUTUBE, 
              NOTITIES  
          FROM 
              `BANDS` 
          WHERE 
              BANDID = $BANDID";
  </code></pre>
  
  <p>$BANDID is get by clicking a link on a previous page, but i wanted it combined the above</p>
  
  <pre><code>$sql = "SELECT 
              NAAM,
              BANDID, 
              NAAMBAND, 
              CONTACTBAND, 
              BOEKERID
          FROM 
              `BANDS` 
          INNER JOIN 
              `adres` 
          WHERE 
              `BANDS`.BOEKERID = `adres`.id ";
  </code></pre>
  
  <p>but this doenst work:</p>
  
  <pre><code>$BANDID = intval($_GET['BANDID']);
  $sql1 = "SELECT 
              NAAM,
              BANDID, 
              NAAMBAND, 
              CONTACTBAND, 
              BOEKERID 
          FROM 
              `BANDS` 
          INNER JOIN 
              `adres` 
          WHERE 
              `BANDS`.BOEKERID = `adres`.id 
          WHERE 
              BANDID = $BANDID";
  </code></pre>
  
  <p>Please help me further, thks</p>