SELECT ?
FROM uno
JOIN dos  ON dos.id = uno.id
LIMIT ? OFFSET ?