Quote:
Originally Posted by Dave
The problem is this part in the second query:
PHP Code:
OR " . $usergroupAwardsArray[auto_criteria] . " IN (membergroupids)
membergroupids is a string that may consist of commas. It should be changed to
PHP Code:
OR FIND_IN_SET(" . $usergroupAwardsArray[auto_criteria] . ", membergroupids)
|
Shouldn't matter as 'IN' expects a comma separated list, see
http://dev.mysql.com/doc/refman/5.7/en/expressions.html, specifically the second example using IN.