I have a field which I want to display dependent on the value on another field.
The first field is a delimiter type
The field that it depends on is a query type
The query is:
SELECT FLOOR(points) FROM wxo_alpha_userpoints WHERE wxo_alpha_userpoints.userid = [user_id]
The condition for the second field is:
cb_buzzerpoints > 10000
It works in most case but in some, when accessing certain profile pages I get the error:
1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[user_id]' at line 1 SQL=SELECT FLOOR(points) FROM wxo_alpha_userpoints WHERE wxo_alpha_userpoints.userid = [user_id]
It seems that the substitution is not working for some profile pages.
In most cases, whether the points total is below or above 10000, the first field shows or not when it should do.