I am receiving this warning when I try to run a database query:
Warning: Missing argument 2 for wpdb::prepare()
The offending query is:
$result = $wpdb->get_var(
$wpdb->prepare(
"SELECT DISTINCT meta_value FROM $metatable
WHERE meta_key LIKE '%matchme%'
AND meta_value IS NOT NULL
AND meta_value <> ''"
)
);
Is there a way to remove the error by modifying the above query?