Changeset 4367 for trunk/include/category_cats.inc.php
- Timestamp:
- Nov 25, 2009, 8:02:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_cats.inc.php
r4334 r4367 36 36 FROM '.CATEGORIES_TABLE.' c INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' 37 37 ON id = cat_id and user_id = '.$user['id'].' 38 WHERE date_last >= SUBDATE( 39 CURRENT_DATE,INTERVAL '.$user['recent_period'].' DAY 40 ) 38 WHERE date_last >= '.pwg_db_get_recent_period_expression($user['recent_period']).' 41 39 '.get_sql_condition_FandF 42 40 ( … … 105 103 "\n AND" 106 104 ).' 107 ORDER BY RAND()105 ORDER BY '.DB_RANDOM_FUNCTION.'() 108 106 LIMIT 1 109 107 ;'; … … 133 131 "\n AND" 134 132 ).' 135 ORDER BY RAND()133 ORDER BY '.DB_RANDOM_FUNCTION.'() 136 134 LIMIT 1 137 135 ;';
Note: See TracChangeset
for help on using the changeset viewer.