title: SQLSTATE[HY093]: Invalid parameter number on laravel model query
body: <p>So i have this query on my laravel model to be called in my controller</p>
  
  <p>model:</p>
  
  <pre><code>public static function predikat($masa, $ipk_yudisium){
  
      $searchFilter = DB::select(DB::raw("SELECT 
  
  m_predikat_yudisium.keterangan
  FROM m_predikat_yudisium WHERE
  m_predikat_yudisium.masa_awal_berlaku &lt;= :masa and
  m_predikat_yudisium.masa_akhir_berlaku &gt;= :masa and
  m_predikat_yudisium.range_awal_ipk &lt;= :ipk_yudisium  and
  m_predikat_yudisium.range_akhir_ipk &gt;= :ipk_yudisium and
  m_predikat_yudisium.group_id = 1"),
              array('masa' =&gt; $masa,
                  'ipk_yudisium' =&gt; $ipk_yudisium
              )
          )
          ;
          foreach ($searchFilter as $predikat){
              return $predikat;
          }
          $predikat = (object) array('keterangan' =&gt; "" );
          return $predikat;
      }
  </code></pre>
  
  <p>controller :</p>
  
  <pre><code>$masa = $request-&gt;input('masa');
  $ipk_yudisium= $request-&gt;input('ipk_yudisium');
  
  $predikat = $data-&gt;predikat($masa, $ipk_yudisium); //$data is my model called name
  </code></pre>
  
  <p>but i cant execute that query, it got an error message saying :</p>
  
  <pre><code>SQLSTATE[HY093]: Invalid parameter number (SQL: SELECT m_predikat_yudisium.keterangan
  FROM m_predikat_yudisium WHERE
  m_predikat_yudisium.masa_awal_berlaku &lt;= :masa and
  m_predikat_yudisium.masa_akhir_berlaku &gt;= :masa and
  m_predikat_yudisium.range_awal_ipk &lt;= :ipk_yudisium and
  m_predikat_yudisium.range_akhir_ipk &gt;= :ipk_yudisium and
  m_predikat_yudisium.group_id = 1)
  </code></pre>
  
  <p>what is wrong? thanks</p>