Created
September 9, 2009 13:31
-
-
Save arika/183711 to your computer and use it in GitHub Desktop.
This file contains 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
pinned = Pin.find(:all,:conditions => [ 'user_id = ?','arika' ], :joins => 'LEFT OUTER JOIN last_modifieds ON pins.eid = last_modifieds.eid', :order => 'last_modifieds.date desc',:offset =>0,:limit => 10) | |
D,[22:31:17.510] Pin Load (0.6ms) SELECT `pins`.* FROM `pins` LEFT OUTER JOIN last_modifieds ON pins.eid = last_modifieds.eid WHERE (user_id = 'arika') ORDER BY last_modifieds.date desc LIMIT 0, 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment