added doSubQuery parameter for subqueries on limit
added distinct clause
added handling reserved words
added validate attribute to the model to set validation to false
fixed alias for table