If i have a variable like
$volume = 'IV, no. 33';
$query = "Select post_id FROM wp_postmeta where meta_value LIKE ".$volume."
It show error.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' no. 33
So what is the correct way for search with special characte.