PHP/MySql search array with array
问题 I'm building a WordPress website. With a MySql Query I load all companies from my database that have a specific brand: $results = $wpdb->get_results("SELECT * FROM $wpdb->postmeta WHERE meta_key = 'brand'")` brand is an array so I search for a specific value in array: $brand = $_GET['brand']; $brandNeedle = $brand; if(in_array($brandNeedle, $brand[0])) Now, my client asked to list all users that are connected to all those companies that are selected. So I need to create a new query.