I have this database query
SELECT *
FROM (`metadata` im)
INNER JOIN `content` ic ON `im`.`rev_id` = `ic`.`rev_id`
WHERE `im`.`id` = '00039'
AND `current_revision` = 1
ORDER BY `timestamp` DESC
LIMIT 5, 5
The query limits the total rows in the result to 5. I want to limit the left table metadata
to 5 without limiting the entire result-set.
How should I write the query?