I have a table in the bank called actuation, in which generated the ID's of the areas chosen by the user ex: 1,5,4,9,15
I need the result of the query in Mysql to return all the users that have been selected in a checkbox list
Can someone give me a glimpse of how to do this search, even without repeating the user if it fits into more than one chosen area of action?
I'll simplify with the IN Query, the result was the same
Using
SELECT * FROM usuarios WHERE atuacao_usuario IN (1,5,6)
Show me the results of users in the table already with these areas selected as in the image
Now if I remove the numeral 1 query SELECT * FROM usuarios WHERE atuacao_usuario IN (5,6)
does not return any result