Hi Andrew
Meant to post problem as solved yesterday but got over whelmed.
The problem was with the $wpdb
as you rightly state but was with me calling the prefix twice inadvertently as it was already called in the $ossf_quotes
variable.
Hope I didn’t waste your time. The security issue is in hand and will be included in the completed code.
Cheers
Gareth