View Single Post
08-05-2008, 01:41 PM
#3
ditch182 is offline ditch182
Status: Junior Member
Join date: Jul 2008
Location: NC
Expertise:
Software:
 
Posts: 70
iTrader: 0 / 0%
 

ditch182 is on a distinguished road

  Old

Your SQL statement is not selecting the 10 newest entries. It is selecting the last 10 entries when ordered by "name". That's a subtle difference I know, but if "name" is a string then you'll get the last 10 in descending alphabetical order. Try ordering by id. Also, your LIMIT clause is technically correct, but you don't need the 0. 0 is the default offset, so LIMIT 0,10 is the same as LIMIT 10.