I am using this code to find out if there is a field in the column "website" that matches $string
:
$get_results = $wpdb->get_results($wpdb->prepare(
"SELECT * FROM yc_customers WHERE website LIKE %s LIMIT 10",
"%{$wpdb->esc_like($string)}%"
));
This works but I would like to figure out if there is a field in ANY COLUMN that matches $string.
I thought I could just use WHERE *
but this is not working for me.