How to sanitize this particular mysql query ?
- by justjoe
i got this SQL query where post_title taken from $_GET
$sql = "SELECT ID FROM $wpdb-posts WHERE $wpdb-posts.post_title = '5-desain-web-colourful'";
What is the best way to sanitize this and make it more safe ?