title: how to convert this query in yii framework model
body: <pre><code>SELECT u.id, u.username, u.score, 
  (SELECT COUNT(ownerId) FROM post p WHERE p.ownerId = u.id) AS totalPost 
  FROM users u 
  ORDER BY u.score DESC, totalPost DESC LIMIT 10
  </code></pre>