title: Inserting an array into the database
body: <p>I have am creating a check function that enables me to check that data with the specific <code>id</code> and <code>categoryid</code> is already present in the database:    </p>
  
  <pre><code>$fields['Occupation'] = array(3) { [0]=&gt; string(1) "1" [1]=&gt; string(1) "6" [2]=&gt; string(1) "7" }
  </code></pre>
  
  <p><strong>Line in question:</strong></p>
  
  <pre><code>$occCheck = Jojo::selectQuery("SELECT * FROM {refocus_candidate_category} WHERE canid=? AND categoryid=?", array($emailCheck['id'], $fields['Occupation']));
  </code></pre>
  
  <p><strong>Why am I getting this Error and how do I resolve:</strong></p>
  
  <pre><code>Unknown column 'Array' in 'where clause'
  </code></pre>
  
  <p><strong>Full Check Function</strong>:</p>
  
  <pre><code>    if($occCheck != FALSE)
      {
          Jojo::updateQuery("UPDATE {refocus_candidate_category} SET canid=?, categoryid=? WHERE canid=? AND categoryid=?", array($emailCheck['id'], $fields['Occupation']));
      }else{
          Jojo::insertQuery("INSERT INTO {refocus_candidate_category} SET canid=?, categoryid=? WHERE canid=? AND categoryid=?", array($emailCheck['id'], $fields['Occupation']));
      }
  </code></pre>