Rest API issues

I am using the rest api. When I use the query field my query comes back blank. If I leave it blank i get some result. You can test a blank query field here … Without query

You can test a query with a where clause here…
With query

$get_entry_list_parameters is below


 $get_entry_list_parameters = array(

         //session id
         'session' => $session_id,

         //The name of the module from which to retrieve records
         'module_name' => 'Leads',

         //The SQL WHERE clause without the word "where".
         'query' => $_GET['query'],

         //The SQL ORDER BY clause without the phrase "order by".
         'order_by' => "",

         //The record offset from which to start.
         'offset' => '0',

         //Optional. A list of fields to include in the results.
         'select_fields' => array(
              'id',
             // 'name',
			  'status'
		         ),