Ensure correct ordering of recent project's list for mysql 5.6+

Because of some join optimizations in MySQL 5.6 the sort order derived from hoursbase can be lost after the joins. Therefore we extended the query to respect the hoursbases' order. Additionally the subquery has been limited to `numberofrecentprojects * 20`  results for better performance.