The JSON generated in you action will look like
{
"name": "query3",
"module": "dbconnector",
"action": "select",
"options": {
"connection": "mysql",
"sql": {
"type": "SELECT",
"columns": [],
"table": {
"name": "articles"
},
"joins": [],
"wheres": {},
"query": "SELECT * FROM articles",
"params": []
}
},
"output": true,
"meta": [...],
"outputType": "array"
},
The query you find in the JSON is not the actual query used on your server, on your server the query is rebuild using the data in the JSON for your specific database server. The SQL query can be different depending on the used database.
To test the query you could edit the action JSON and add "test": true,
inside the options for that action.
{
"name": "query3",
"module": "dbconnector",
"action": "select",
"options": {
"test": true,
...
By adding the test option it will output the query in the output instead of the query result. You then open the action file in the browser and check the JSON response.
Let me know if the query generated on your server is incorrect.