Hello!
I'm using node revision argument (Revision: ID) in Page Manager and there are exceptions:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.node_revisions' doesn't exist: SELECT nid FROM {node_revisions} WHERE vid = :vid; Array ( [:vid] => 1874 ) in ctools_argument_rid_context() (line 42 of .../sites/all/modules/ctools/plugins/arguments/rid.inc).
plugins/arguments/rid.inc:42
$nid = db_query('SELECT nid FROM {node_revisions} WHERE vid = :vid', array(':vid' => $arg))->fetchField();
should be
$nid = db_query('SELECT nid FROM {node_revision} WHERE vid = :vid', array(':vid' => $arg))->fetchField();
Correct table name is node_revision (without s)

Comments
Comment #1
andreymaximov commentedComment #2
andreymaximov commentedSorry for double postin
Comment #3
maximpodorov commentedThe simple fix.
Comment #4
andypostThis could lead to data-loss
Comment #5
podaroklooks like simple fix
do we need tests here?
if no - RTBC
Comment #6
kolier commentedPlease commit before 7.x-1.4.
Comment #7
japerryFixed and Committed:
http://drupalcode.org/project/ctools.git/commit/c5205c194a935ab646d07ed9...