Possible Duplicate:
MySQL - when to use single quotes, double quotes, and backticks?
Question 1
Why does this work?
"SELECT `id` FROM `table` WHERE x= '".$y."'"
but not this?
"SELECT `id` FROM `table` WHERE 'x' = '".$y."'"
^ ^
Notice the extra single quotes
Question 2 Is it better to do id over `id` (with the weird quotes)? Or is it because that double quotes make it interpret as a variable?