WHERE ralph_assets_softwarecategory.name LIKE %s
    OR ralph_assets_licence.niw LIKE %s
?