I'm trying to understand why a query on one column will work while a query on another column will not work. I use the following to create a table: [code] CREATE TABLE pages ( page_id TINYINT(5) UNSIGNED NOT NULL AUTO_INCREMENT, title VARCHAR(200) NOT NULL, PRIMARY KEY (page_id) ) [/code] And this is the query I use on a template page: [code] $query = "SELECT * FROM pages WHERE page_id=".$_GET['page_id']; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); [/code] I have some other code on the page to call various data from the row. When I go to sitename.com/template.php?page_id=1 it shows the data I want from the row where page_id=1, sitename.com/template.php?pade_id=2 shows the data I want from the row where page_id=2, etc. Now, I change the query, replacing page_id with title: [code] $query = "SELECT * FROM pages WHERE title=".$_GET['title']; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); [/code] When I go to sitename.com/template.php?title=title1 instead of showing the data from the row where I have a title = title1 I get an error that says Unknown column 'title1' in 'where clause' Where am I going wrong? Thanks in advance for the help.