Pie chart didn't display values of nfeed

I am using plugin nfeed which has SQL query dependent on custom field storno.
Everything works fine except pie chart in Gadgets display.

SELECT DISTINCT "V1"
FROM "AO_4838" WHERE "TYPE" = 'SR_TRIPPLET' AND
"V4" = (select customvalue from customfieldoption where "id" = '$issue.get("Storno")')

It didn’t display correct 2 values from sql condition but its getting values from custom fields
possible values on chart. In result it didn’t display categories because of select.