This is what I have right now:
SELECT * FROM (SELECT * FROM shareableviews INNER JOIN generatedurl ON shareableviews.urlid = generatedurl.shareableid GROUP BY