See here. If the first parameter of find() method is no string, you have to bind the params through the criteria object.
See here. If the first parameter of find() method is no string, you have to bind the params through the criteria object.
Try this:
$criteria = new CDbCriteria;
$criteria->condition = "City = :city";
$criteria->params = array(':city' => $_GET['city']);
$city = City::model()->find($criteria);