EntityFieldQuery gives error on adding propertyCondition I have to list down taxonomy term ids which should be greater than a specific tid.
Below is the code I am using:-

$query = new EntityFieldQuery();

$tid = variable_get('last_player_update'); //last index of player update

$query-&gt;entityCondition('entity_type', 'taxonomy_term')
  -&gt;propertyCondition( 'tid',  'value', $tid, '&gt;=')
  -&gt;propertyCondition('vid', 3)
  -&gt;propertyOrderBy('tid', 'ASC')
  -&gt;range(0, 1000); 

$result = $query-&gt;execute();


On executing the script I am getting the following error:- 

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '9174 'value') AND (taxonomy_term_data.vid = '3') ORDER BY taxonomy_term_data.ti' at line 1: SELECT taxonomy_term_data.tid AS entity_id, :entity_type AS entity_type, NULL AS revision_id FROM {taxonomy_term_data} taxonomy_term_data WHERE (taxonomy_term_data.tid 9174 :db_condition_placeholder_0) AND (taxonomy_term_data.vid = :db_condition_placeholder_1) ORDER BY taxonomy_term_data.tid ASC LIMIT 1000 OFFSET 0; Array ( [:db_condition_placeholder_0] =&gt; value [:db_condition_placeholder_1] =&gt; 3 [:entity_type] =&gt; taxonomy_term ) in EntityFieldQuery-&gt;execute() 


What I am missing in the above code snippet?
Fields have columns. Properties do not. You want:

$query-&gt;entityCondition('entity_type', 'taxonomy_term')
  -&gt;propertyCondition( 'tid',  $tid, '&gt;=')
  -&gt;propertyCondition('vid', 3)
  -&gt;propertyOrderBy('tid', 'ASC')
  -&gt;range(0, 1000);