This is my Code

```
table_query
id query
1  SELECT * FROM TABLE WHERE date = "$loc_date"

 <?php
$q1 = 'SELECT query FROM table_query WHERE 1 LIMIT 1';
$result = execute q1;
$query = $result['query'];
    $loc_date = '2017-12-06';
    $loc_query = $query; //This query fetch from table. Not directly write on file
    execute query here
    ?>

```

But I don't get any result after executing query.