Corrected get_by_id() method to only return a single result, rather than a list