Fix subquery syntax error on Android 2.x