select t.video_id from tbl_videos as t  join tbl_video_theme_subtheme_mapping as  sb on (t.video_id = sb.video_id)  join tbl_themes as  th on (th.theme_id = sb.theme_id)  join tbl_video_tag_mapping as  vtm on (vtm.video_id = t.video_id)  join tbl_tags as  tt on (tt.tag_id = vtm.tag_id) left join tbl_sub_themes as  st on (st.sub_theme_id = sb.sub_theme_id) left join tbl_video_country_location_mapping as  tclm on (tclm.video_id = t.video_id)  join tbl_country_location as  tcl on (tcl.country_location_id = tclm.country_location_id)  join countries as  tc on (tc.country_id = tcl.country_id)  where  1=1  && (th.theme_name REGEXP '[[:<:]]Palestine[[:>:]]' OR st.sub_theme_name REGEXP '[[:<:]]Palestine[[:>:]]' OR t.video_title REGEXP '[[:<:]]Palestine[[:>:]]' OR t.reel_number REGEXP '[[:<:]]Palestine[[:>:]]' OR tt.tag_name REGEXP '[[:<:]]Palestine[[:>:]]'  )  group by t.video_id89,148,380,525,569,580,725,734,750,751,966,1466,1941,2022,2113,2478,2479,2484,2497,2697,3083,3707,3810,3913,3915,3921,3922,3953,3962,3964,3976,3991,3992,3999,4004,4017,4025,4063,4096,4174,4179,4180,4300,4389,4580,4649,4979,5072,5079,5396,5459,5710,5889,5893,5894,5914,6360,6363,6968,6971,6976,6983,6988,7276,7451,7628,8081,8087,8177,8183,8197,8214,8250,8261,8271,8272,8333,8429,8495,8502,8506,8513,8517,8533,8568,8631,8661,8672,8673,8677,8685,8694,8710,8728,8793,8810,8814,8826,8833,8878,8983,9198,9265,9302,9780,9784,9785,9790,9868,9889,9891,9895,9897,9903,9928,9951,9955,10380,10570,10573,10577,10579,10582,10605,10608,10636,10641,10831,10870,11000,11037,11042,11106,11143,11156,11188,11370,11714,12030,12039,12042,12047,12055,12057,12072,12079,12272,12280,12308,12362,12367,12402,12407,12412,12437,12475,12667,12774,12998,13010,13016,13018,13025,13029,13033,13037,13044,13045,13278,13350,13409,13457,13526,13860,13904,13928,13933,14052,14222,14232,14259,14283,14311,14313,14333,14357,14363,14395,14399,14462,14718,14728,14740,14748,14754,15004,15028,15087,15173,15360,15365,15379,15383,15388,15394,15399,15407,15504,15513,15530,15547,15571,15593,15613,15642,15646,15651,15659,15660,15798,15821,15830,15834,15836,15840,15842,15859,16233,16246,16302,16314,16638,16646,16651,16657,17040,17147,17150,17153,17158,17203,17217,17221,17226,17238,17241,17244,17246,17247,17255,17263,17266,17326,17329,17360,17364,17366,17384,17385,17386,17690,17973,18126,18162,18173,18191,18259,18310,18372,18407,18410,18412,18454,18613,19469,19611,19648,19651,21450,21454,21459,21460,21461,21462,21466,21467,21592,21593,21594,21595,21596,21597,21598,21599,21600,21601,21602,21603,21604,21605,21606,21607,21608,21609,21610,21611,21612,21613,21614,21615,21616,21617,21618,21619,21620,21690,21704,21811,23029