J2.5.16 CB1.9.1 CBS3.0.0
I want to create a field that shows the expiry date of the user's active subscription (when one exists) in year-month format (something like 2014-02). I have tried to use the query plugin to create this field but it refuses to appear on the designated profile tab (or throw any error messages).
I have attached a screen shot of the Query field configuration. It is my first use of the Query plugin and I am not experienced in SQL queries so I expect the issue is my understanding or execution. The query I am currently using (I have tried others unsuccessfully!) is:
SELECT DATE_FORMAT(`expiry_date`,'%Y-%m') FROM `sag13_cbsubs_subscriptions` WHERE `user_id` = '[user_id]' AND `status` = 'A';