I need to show and hide a section on a page only if there are less than 4 records whose memberID is 5. This attempt fails!
SELECT @rownum:=@rownum+1 r
, (SELECT @rownum:=-1) r
WHERE memberID = 5
Should I be using different functions?