title: Highstock mysql json compare multiple series
body: <p>Please help to create a query!
  This is a working example of my query Retrieve data as JSON using PHP:</p>
  
  <pre><code>&lt;?php
  $con = mysql_connect("localhost","user","password");
  
  if (!$con) {
    die('Could not connect: ' . mysql_error());
  }
  
  mysql_select_db("admin_accounting", $con);
  
  $result = mysql_query("SELECT unix_timestamp(date), sum(ksi2k) FROM accounting where lhc_vo like 'ops' group by year(date), month(date)");
  $rows = array();
  $rows['type'] = 'area';
  $rows['name'] = 'Ops';
  while($r = mysql_fetch_array($result)) {
      $rows['data'][] = $r[0]*1000;
      $rows['data'][] = $r[1];
  
      array_push($rows);
  }
  
  print json_encode($rows, JSON_NUMERIC_CHECK);
  
  mysql_close($con);
  ?&gt;
  </code></pre>
  
  <p>The JSON results look like this:</p>
  
  <pre><code>{"type":"area","name":"Ops","data":[1167664515000,0,1170342915000,0,1172762115000,0,1175436915000,0,1178028915000,0]}
  </code></pre>
  
  <p>But I need the JSON results should look like this:</p>
  
  <pre><code>{"type":"area","name":"Ops","data":[[1167664515000,0],[1170342915000,0],[1172762115000,0],[1175436915000,0],[1178028915000,0]]}
  </code></pre>
  
  <p>I would be very grateful for the help</p>