Hello, sorry, yes, I re-tested and I confirm it works even with just ->q instead of ->quote.
Although not sure why you decided to use ->q instead of ->quote, as other queries in the file already use ->quote, but up to you 🙂
So yes, I confirm the fix works 🙂
By looking at the query I can spot another quick fix:
This line can be removed:
->join('INNER', '#__content as c ON fv.item_id = c.id')
As it's not used by the query anymore, joining the content table is not needed.