SELECT * FROM tbl_works WHERE work_active = 'Yes' AND artist_page = 'Yes' AND artistID = '157' ORDER BY artist_page_rank asc, workID desc limit -1,1