Created
          February 23, 2012 22:42 
        
      - 
      
- 
        Save greggles/1895497 to your computer and use it in GitHub Desktop. 
    variable constants, dawg
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| $query_latest_comment = "SELECT c.nid, c.cid from {node_comment_statistics} c INNER JOIN {node} n ON c.nid=n.nid WHERE n.type=:forum_type and c.cid > :zero_value ORDER BY last_comment_timestamp DESC LIMIT 0, 50"; | |
| $result_latest_comment = db_query($query_latest_comment, array (':forum_type'=>'forum', ':zero_value'=>0)); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment