SELECT guides.namer as document, print_form.nm as print_form, nm_rus as nm_kolonki, "share" as nm_zagolovok FROM "DBA"."print_form", "DBA"."print_browser" , guides Where (nm_rus like '%18%' or "share" like '%18%') and "DBA"."print_form"."id" = "DBA"."print_browser"."id_pform" and print_form.id_guide=guides.id;