böyle denermisin.
$sorgu = mysql_query("SELECT * FROM ayarlar where title");