Fix inner query returning more than one result
Created by: jeancarlozapata
On MySQL, only the first table was being exposed in the database object after connecting to the database.
The inner query returned more than one result, causing the external query to return only one table (the first one). Adding LIMIT 1
to the inner query fixes this issue.