I can't seem to get the desired result.
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 db 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)