I can't seem to get the desired result from this query:
SELECT *
FROM `messages`
WHERE `msgType` = '0'
AND `status` = '0'
ORDER BY `dateSent` DESC LIMIT 20, 0
Basically, I'm trying to show 20 results per page, but this query returns nothing. (For the record, all instances in the database have msgType and status as 0)
EDIT: Removing the LIMIT part gives me the results but not divided and paginated like I want
EDIT v2 LIMIT should be followed by OFFSET, # OF RECORDS (I am dumb)