I need this to return 1 result that matches 1111 that is in one of the usergroupid of 6, 9, 12, OR 13.
This returns all matches for the selected usergroupid’s?
Or should I be using a different JOIN method?
SELECT
userfield.userid,
userfield.field5,
user.userid,
user.usergroupid
FROM
userfield
INNER JOIN user ON (userfield.userid = user.userid)
WHERE
userfield.field5 = '[B]1111[/B]' AND
user.usergroupid = '[B]6[/B]' OR
user.usergroupid = '[B]9[/B]' OR
user.usergroupid = '[B]12[/B]' OR
user.usergroupid = '[B]13[/B]'
[B]LIMIT 1[/B]