specify context on hook_menu drupal
I don't know how the Context module handles Entity types, but it loads entity type definitions using the entity ID (from the URL). In your case, you are creating a menu item without any arguments, just specifying business logic in the callback, and your menu item path is not a node path. That's why the Context module can't find any entity type definition. In this case you can specify additional context reactions by path (by your custom path) and display blocks.

You don't need to specify double fields method; you can write much simpler code.

$nid_some = db_select('node', 'n')
  -&gt;fields('n', array('nid', 'type'))
  -&gt;condition('n.type', 'SOME_TYPE')
  -&gt;execute()
  -&gt;fetchAll();


If you need to fetch only one row from the database, you can use the following code.

$nid_some = db_select('node', 'n')
  -&gt;fields('n', array('nid', 'type'))
  -&gt;condition('n.type', 'SOME_TYPE')
  -&gt;range(0,1)
  -&gt;orderBy('nid', 'DESC') // Additional sorting
  -&gt;execute()
  -&gt;fetchAll();