CRM_Utils_SQL_Select - Backport

See http://forum.civicrm.org/index.php/topic,31718.0.html