title: how to combine more than one mysql query into single query
body: <p>i have 3 different queries like below:</p>
  
  <pre><code>$query = "select category_id,category_name from category";
  $result = $this-&gt;Dbmodel-&gt;customQueryResult($query);
  
  $query = "select location,location_name from sub_category";
  $result_one = $this-&gt;Dbmodel-&gt;customQueryResult($query);
  
  $query = "select category_date,category_month from other_category";
  $result_two = $this-&gt;Dbmodel-&gt;customQueryResult($query);
  </code></pre>
  
  <p>here i am calling <code>mysql</code> server 3 times to execute my <code>query</code> and getting the <code>result</code> thereby..</p>
  
  <p>now i am thinking how can i reduce <code>mysql</code> call so that all these 3 <code>query</code> gets executed in <code>one</code> single query so making only 1 call to <code>mysql server</code> and displaying all different results to user using <code>php</code></p>
  
  <p>how can i do this.. any help or suggestion would be a great help.. thanks in advance</p>