title: Internal server error 500 on codeigniter Query
body: <p>I am using ajax to retreive data from the database and am receiving a weird internal server error 500 on this query and I can't figure out what is wrong with it. The issue is with <code>-&gt;get()-&gt;result()</code>, when I remove that I am not getting a internal server error as response. The whole query:</p>
  
  <pre><code>$this-&gt;db-&gt;select('bikes.store_id')-&gt;from('mappings')-&gt;where('mappings.product_id', $prod_id)-&gt;join('bikes', 'bikes.product_id = mappings.product_id')-&gt;get()-&gt;result()
  </code></pre>