select() + withColumn() query error

added failing testcase for issue #608