Line 527, the query built in the else block should be something like this:
$queryStr = "left join {content_type_%s} ct on n.nid=ct.nid
left join {node_type} nt on n.type=nt.type
WHERE n.type='%s' ";
$query_args[] = $oaiContentType;
$query_args[] = $oaiContentType;
}
as currently it is returning all nodes from the site.