I have an issue in finding the correct records from the database. This is my query:
@interested_individual = Profile.where('category_id = ?', @event.interests).all
Where category_id is the column in the profiles table what holds the integer value and @event.interests returns an array that is ["1", "2", "3"]
What I want here is to fetch all the profiles where its category_id is present in the @event.interests array.
Please let me know the solution. Thanks in advance