Ignore:
Timestamp:
Nov 21, 2009, 8:52:50 PM (14 years ago)
Author:
nikrou
Message:

Feature 1255 : limit params in sql queries were in wrong order (LIMIT count OFFSET offset)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r4331 r4334  
    598598  WHERE category_id = '.$category_id.'
    599599  ORDER BY '.DB_RANDOM_FUNCTION.'()
    600   LIMIT 0 OFFSET 1
     600  LIMIT 1
    601601;';
    602602    list($representative) = pwg_db_fetch_row(pwg_query($query));
Note: See TracChangeset for help on using the changeset viewer.