I'm currently creating pagination on my site, and was wondering, is it possible to return the total number of results within this query ...
SELECT * FROM images
LEFT JOIN category
ON category.id = image.category_id
WHERE category = :category
ORDER BY timestamp LIMIT 0, 10
If I can return the total number of results I can use that to create the pagination links on the results page rather than creating a sperate query.