I have a query that has a where condition, sometimes the condition can be a string and sometimes it can be an array. If it is an array I need to use IN.
The condition is passed in as a var.
What would be the best solution:
Check if the passed in var is an array - if not then put it in an array. Then always run an IN search.
Change the SQL that is ran, so if its an array, run an IN search, if not doing a WHERE.