SELECT * FROM tbl_works INNER JOIN tbl_artist ON tbl_artist.artistID = tbl_works.artistID WHERE tbl_works.work_active = 'Yes' AND tbl_works.artist_page = 'Yes' AND tbl_works.work_catID !=5 AND tbl_works.artistID = '547-Daniel-O'Toole' ORDER BY cast(works_rank as unsigned) ASC