### Error querying database. Cause: java.sql.SQLSyntaxErrorException:
This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME
subquery'
### The error may exist in com/thoughtworks/go/server/dao/maps/Stage.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: SELECT
stages.name as stageName, stages.counter
as stageCounter, stages.pipelineId as pipelineId,
pipelines.name as pipelineName, pipelines.counter as
pipelineCounter, pipelines.label as pipelineLabel,
stages.approvedBy, stages.cancelledBy,
stages.createdTime, stages.orderId, stages.result as
stageResult, stages.approvalType,
stages.completedByTransitionId as completedByTransitionId,
stages.state as stageState, stages.latestRun,
stages.fetchMaterials, stages.cleanWorkingDir,
stages.rerunOfCounter, stages.artifactsDeleted,
stages.configVersion, stages.lastTransitionedTime,
builds.*,
builds.id as buildId,
buildstatetransitions.currentState,
buildstatetransitions.statechangetime,
buildstatetransitions.id as
stateId FROM stages INNER JOIN pipelines ON
pipelines.id
= stages.pipelineId AND
pipelines.name = ? INNER JOIN builds ON
stages.id = builds.stageId AND builds.ignored != true LEFT JOIN
buildstatetransitions ON
builds.id = buildstatetransitions.buildId
WHERE
stages.id in ( SELECT
stages.id
FROM stages INNER JOIN pipelines ON stages.pipelineId =
pipelines.id AND
stages.name = ? AND
pipelines.name = ?
AND result = 'Passed' ORDER BY id LIMIT ? OFFSET ?) AND
stages.result = 'Passed' ORDER BY
stages.id,
builds.name,
buildstatetransitions.statechangetime
### Cause: java.sql.SQLSyntaxErrorException: This version of MySQL
doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
; bad SQL grammar []; nested exception is
java.sql.SQLSyntaxErrorException: This version of MySQL doesn't yet
support 'LIMIT & IN/ALL/ANY/SOME subquery'