Ghennadi,
I don't get PHP error anymore but the result is "0". One thing I noticed though when i paste the shortcode, the end of it
"]"]
is marked in red, as if it has some sort of error. Also my "Yes" value is "1", so I replace that which worked with original code, except of course it would take all "Yes" answers in the database.